The TypeScript Playground supports TypeScript versions all the way back to 3.3.3
(which was versioned as 3.3.3333
) up to the latest nightly build.
The ability to switch the version of TypeScript makes it easy to figure out potential regressions and to be able to let people test out new language features without having to upgrade their projects to (potentially) an unstable version of TypeScript. You can access the list of production TypeScript versions via a dropdown in the editor’s toolbar inside the Playground. If there’s a current beta or rc, that will show at the top.
The dropdown shows the highest patch version for a TypeScript release, but that is not every version available. You can refer to these two JSON files for the full list of release versions and pre-release versions.
Setting a TypeScript version will append ?ts=[version]
to your URL and reload. For example, setting the TypeScript version to 4.3.5 will add ?ts=4.3.5
to the URL, which is an OK segue to the overview of the URL’s structure.
There’s one special case where ?ts=next
will find the latest version of the TypeScript which was built for the Playground and use that.