Skip to content

shirakaba/typescript-play

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript playground

https://agentcooper.github.io/typescript-play/

Differences from https://www.typescriptlang.org/play:

  • All strict options turned on by default
  • More available compiler options
  • Ability to switch TypeScript version
  • More space for code
  • More examples
  • Quicker sharing, URL updates as you type
  • Shorter sharing URLs

Getting started

npm install
npm run setup
npm start

Updating TypeScript

Playground relies on UNPKG to fetch monaco-editor (contains typescript through monaco-typescript package).

In case if monaco-editor is not updated to the latest TypeScript, the latest version can be built with npm run get-typescript latest and served locally.

In case you want to serve some specific version of TypeScript locally you should run npm run get-typescript <version>. For example, to serve TypeScript version 2.8.3 you should run npm run get-typescript 2.8.3; npm start

Browser compatibility

Tested with:

  • Chrome 65
  • Safari 11
  • Firefox 58
  • Microsoft Edge 41

Prior art

Other useful links

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 37.1%
  • TypeScript 36.5%
  • HTML 18.2%
  • CSS 6.2%
  • Shell 2.0%