TypeScript
Any JavaScript is valid TypeScript - JavaScript that scales.

TypeScript lets you write JavaScript the way you really want to
Any browser. Any host. Any OS
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
Any JavaScript is valid TypeScript.
Open Source - TypeScript is being developed on GitHub. The TypeScript compiler is implemented in TypeScript, and can be used in any JavaScript host.
The command-line TypeScript compiler can be installed as a Node.js package.
To Install just run npm install -g typescript
Then to Compile just run tsc helloworld.ts
What might a helloworld.ts file look like?
TypeScript 6 & 7 versions
The TypeScript team have announced the steps they are taking to radically improve TypeScript performance. They have started to port the TypeScript compile/transpiler (tsc) from TypeScript to GO. Go was chosen because it offers a performance gain of around 10 times over the current versions plus the code could be ported which meant not starting from stage one again.
The native implementation will drastically improve editor startup, reduce most build times by 10x, and substantially reduce memory usage. They have opened up access to the typescript-go GitHub repository to try out today. Their stated aim is to be able to preview a native implementation of tsc thats capable of command-line typechecking by mid-2025, with a feature-complete solution for project builds and a language service by the end of the year.
TypeScript moving to the Language Server Protocol (LSP) will align TypeScript with other languages in supporting editors. Hopefully bringing responsiveness for all language service operations (including completion lists, quick info, go to definition, and find all references). This is a real gain for writing TypeScript as so many services today are built on a basis of VS Code along with LSP and Addins.
The final role out will be TypeScript 6 (JS) and TypeScript 7 (native) plus TypeScript 6 will continue to be available once TypeScript 7 is released for some time the team have stated, so we will have a choice of which to use.
Another area that this port will effect is where you have a process online to compile / transpile TypeScript within the browser (Code Playgrounds / Editors). The team have made it clear that a solution will be available but its not clear today what this might be.
You can read about the port and watch a video in the blog post A 10x Faster TypeScript on the TypeScript blog.
ECMAScript
TypeScript offers support for the latest and evolving JavaScript features, including those from ECMAScript 2015 (ECMAScript 6, ES6, often referred to as "Harmony") which is the sixth major release of the ECMAScript language specification and future proposals, like async functions and decorators, to help build robust components.
These features are available at development time for high-confidence app development, but are compiled into simple JavaScript that targets ECMAScript 3 (or newer) environments.
JavaScript has been standardised in the ECMAScript language specification (Standard ECMA-262) which means ECMAScript is the "proper" name for the language commonly referred to as JavaScript.
The Sixth Edition, known as ES6 or ECMAScript 2015 was released on the . Then in the Seventh Edition was released, known as ECMAScript 2016 or sometimes ES2016 or ES7.
Our JavaScript page has more information on the current ECMAScript language specification.
TypeScript compiles to clean, simple JavaScript code which runs on any browser, in Node.js, or in any JavaScript engine that supports ECMAScript 3 (or newer).
Explore TypeScript Online
On the TypeScripts website you will find a Playground where you are able to select a version of TypeScript to explore. A number of other online code editing platforms support TypeScript but only offer a fixed version. GitHub Codespaces are also a great place to use Typescript as TypeScript has first class support in VS Code.
Documentation
The TypeScript team has some great documentation but be sure to check out the tutorials section for a run down on working with TypeScript and
DefinitelyTyped
DefinitelyTyped - The repository for high quality TypeScript type definitions
Working with TypeScript
We do most of our TypeScript work within Visual Studio Code and have found it to be a great working enviroment for day to day work.
The Visual Studio Code team have a good guide to getting up and running with TypeScript.
Along with documentation for Editing and Refactoring TypeScript in VS Code.
Node.js Running TypeScript Natively
Since V22.6.0, Node.js has Experimental support for some TypeScript syntax.
Node.js has a Introduction to TypeScript within its learn section.
TypeScript Version 5.8
28 February 2025 - Announcing TypeScript 5.8 - Blog Post with the changes and set up details.
One of the interesting features that shipped in this release is the --erasableSyntaxOnly Option which provides the option to run you TypeScript in Node.js 23.6 and above.
13 February 2025 - Announcing TypeScript 5.8 RC - Blog Post with the changes and set up details.
29 January 2025 - Announcing TypeScript 5.8 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.7
22 November 2024 - Announcing TypeScript 5.7 - Blog Post with the changes and set up details.
8 November 2024 - Announcing TypeScript 5.7 RC - Blog Post with the changes and set up details.
9 October 2024 - Announcing TypeScript 5.7 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.6
9 September 2024 - Announcing TypeScript 5.6 - Blog Post with the changes and set up details.
23 August 2024 - Announcing TypeScript 5.6 RC - Blog Post with the changes and set up details.
26 July 2024 - Announcing TypeScript 5.6 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.5
20 June 2024 - Announcing TypeScript 5.5 - Blog Post with the changes and set up details.
6 June 2024 - Announcing TypeScript 5.5 RC - Blog Post with the changes and set up details.
25 April 2024 - Announcing TypeScript 5.5 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.4
6 March 2024 - Announcing TypeScript 5.4 - Blog Post with the changes and set up details.
22 February 2024 - Announcing TypeScript 5.4 RC - Blog Post with the changes and set up details.
29 January 2024 - Announcing TypeScript 5.4 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.3
20 November 2023 - Announcing TypeScript 5.3 - Blog Post with the changes and set up details.
3 November 2023 - Announcing TypeScript 5.3 RC - Blog Post with the changes and set up details.
3 October 2023 - Announcing TypeScript 5.3 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.2
24 August 2023 - Announcing TypeScript 5.2 - Blog Post with the changes and set up details.
9 August 2023 - Announcing TypeScript 5.2 RC - Blog Post with the changes and set up details.
30 June 2023 - Announcing TypeScript 5.2 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.1
1 June 2023 - Announcing TypeScript 5.1 - Blog Post with the changes and set up details.
18 May 2023 - Announcing TypeScript 5.1 RC - Blog Post with the changes and set up details.
18 April 2023 - Announcing TypeScript 5.1 Beta - Blog Post with the changes and set up details.
TypeScript Version 5.0
16 March 2023 - Announcing TypeScript 5.0 - Blog Post with the changes and set up details.
1 March 2023 - Announcing TypeScript 5.0 RC - Blog Post with the changes and set up details.
26 January 2023 - Announcing TypeScript 5.0 Beta - Blog Post with the changes and set up details.
Matt Pocock covers the release in a video TypeScript 5.0 BETA IS HERE
TypeScript Version 4.9
15 November 2022 - Announcing TypeScript 4.9 - Blog Post with the changes and set up details.
1 November 2022 - Announcing TypeScript 4.9 RC - Blog Post with the changes and set up details.
23 September 2022 - Announcing TypeScript 4.9 Beta - Blog Post with the changes and set up details.
TypeScript Version 4.8
25 August 2022 - Announcing TypeScript 4.8 - Announcing TypeScript 4.8 Blog Post.
11 August 2022 - Announcing TypeScript 4.8 RC - Announcing TypeScript 4.8 RC Blog Post.
21 June 2022 - Announcing TypeScript 4.8 Beta - Blog Post with the changes and set up details.
TypeScript Version 4.7
24 May 2022 - Announcing TypeScript 4.7 - Blog Post with set up details.
11 May 2022 - Announcing TypeScript 4.7 RC - Blog Post with set up details.
8 April 2022 - Announcing TypeScript 4.7 Beta - Blog Post with set up details.
TypeScript Version 4.6
28 February 2022 - Announcing TypeScript 4.6 - Blog Post Announcing TypeScript 4.6
11 February 2022 - Announcing TypeScript 4.6 RC - Blog Post with set up details.
21 January 2022 - Announcing TypeScript 4.6 Beta - Blog Post with set up details.
TypeScript Version 4.5
17 November 2021 - Announcing TypeScript 4.5 - Blog Post with set up details.
2 November 2021 - Announcing TypeScript 4.5 RC - Blog Post with set up details.
1 October 2021 - Announcing TypeScript 4.5 Beta - Blog Post with set up details.
TypeScript Version 4.4
26 August 2021 - Announcing TypeScript 4.4 - Blog Post with set up details.
12 August 2021 - Announcing TypeScript 4.4 RC - Blog Post with set up details.
1 July 2021 - Announcing TypeScript 4.4 Beta - Blog Post with set up details.
TypeScript Version 4.3
26 May 2021 - Announcing TypeScript 4.3 - Blog Post with set up details.
12 May 2021 - Announcing TypeScript 4.3 RC - Blog Post with set up details.
1 April 2021 - Announcing TypeScript 4.3 Beta - Blog Post with set up details.
TypeScript Version 4.2
23 February 2021 - Announcing TypeScript 4.2 - Blog Post with set up details.
11 February 2021 - Announcing TypeScript 4.2 RC - Blog Post with set up details.
12 January 2021 - Announcing TypeScript 4.2 Beta - Blog Post with set up details.
TypeScript Version 4.1
19 November 2020 - Announcing TypeScript 4.1 - Blog Post with set up details.
3 November 2020 - Announcing TypeScript 4.1 RC - Blog Post with set up details.
20 August 2020 - Announcing TypeScript 4.0 - Blog Post with set up details.
TypeScript Version 3
TypeScript 3.0 was released on 30 July 2018. This blog post Announcing TypeScript 3.0 covers whats new and the journey to v3.
Visual Studio Code 1.27 now ships with TypeScript version 3.0.3
TypeScript Version 3.1 RC
13 September - Announcing TypeScript 3.1 RC - Blog Post with set up details.
TypeScript Version 2
So the 11th of July saw the Announcement of the TypeScript 2.0 Beta and updates for tooling with regards to Visual Studio 2015 (Announcing TypeScript 2.0 Beta).
The What's new in TypeScript page on the TypeScript Wiki provides great coverage as to whats new in version 2, be sure to take a read.
TypeScript Links
- TypeScriptlang.org
- Typescript Playground
- The TypeScript Handbook
- Typings - The TypeScript Definition Manager
- Typings for NPM Packages
- Definitelytyped.org
- Visual Studio Code
- Why TypeScript is Hot Now, and Looking Forward - Treehouse Blog
- Getting Started with TypeScript - Treehouse Blog
- TypeScript Deep Dive By Basarat Ali Syed
- TypeScript Weekly Newsletter By Marius Schulz
- Ten Years of TypeScript
A Proposal For Type Syntax in JavaScript
Online Editors that support TypeScript
- GitHub Codespaces
- vscode.dev
- typescript-play.js.org
- stackblitz.com
- codepen.io
- codesandbox.io
- jsfiddle.net/boilerplate/typescript
- replit.com/languages/typescript
- onecompiler.com/typescript
- playcode.io/typescript-playground
What is GitHub.dev ?
Press . on any repo to make quick edits powered by Visual Studio Code.
This is a great way to read or make changes to code on GitHub.
This differs from Codespaces as it does not have any compute behind it, so you dont get to use the terminal or to Run & Debug your code.
You can also just change the url from .com to .dev to launch the Editor. For more information take a read of the doc's page.
This service is available today free for all GitHub users.
This page was last updated on .