New TypeScript Playground
The TypeScript playground has received a much-needed refresh with handy new functionality!The new playground is largely a fork of Artem Tyurin’s TypeScript playground which community members have been using more and more.We owe Artem a big thanks for helping out here!
The new playground now supports many new options including:
- The
target
option (allowing users to switch out ofes5
toes3
,es2015
,esnext
, etc.) - All the strictness flags (including just
strict
) - Support for plain JavaScript files (using
allowJS
and optionallycheckJs
)These options also persist when sharing links to playground samples, allowing users to more reliably share examples without having to tell the recipient “oh, don’t forget to turn on thenoImplicitAny
option!”.
In the near future, we’re going to be refreshing the playground samples, adding JSX support, and polishing automatic type acquisition, meaning that you’ll be able to see the same experience on the playground as you’d get in your personal editor.
As we improve the playground and the website, we welcome feedback and pull requests on GitHub!