- Notifications
You must be signed in to change notification settings - Fork36
Better TypeScript playground
agentcooper/typescript-play
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A better TypeScript playground.
Website:https://typescript-play.js.org.
Differences fromhttps://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
npm installnpm run setupnpm startPlayground relies onUNPKG to fetchmonaco-editor (containstypescript throughmonaco-typescript package).
In case ifmonaco-editor is not updated to the latest TypeScript, the latest version can be built withnpm run get-typescript latest and served locally.If you run into errors, the latest monaco version may be incompatible with the latest typescript version,in which case you'll need to update monaco-typescript upstream, or apply a patch locally (see the# Patches section inget-typescript.sh.
In case you want to serve some specific version of TypeScript locally you should runnpm run get-typescript <version>. For example, to serve TypeScript version 2.8.3 you should runnpm run get-typescript 2.8.3; npm start
Tested with:
- Chrome 65
- Safari 11
- Firefox 58
- Microsoft Edge 41
- https://fabiandev.github.io/typescript-playground/
- http://hi104.github.io/typescript-playground-on-ace/
- http://drake7707.github.io/Typescript-Editor/
- http://niutech.github.io/typescript-interpret/
- https://typescript-api-playground.glitch.me/ – exlore TS transforms
- https://ts-ast-viewer.com/ – TS AST viewer
- https://ts-creator.js.org/ - turn TypeScript code into AST builder expressions
About
Better TypeScript playground
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.