TypeScript
Web· alive, actively evolving· since 2012 · Anders Hejlsberg · Microsoft
Static types for JavaScript code, removed at compile time so the output is plain JavaScript.
Draft from 2026-10-30, not yet checked claim by claim against its sources. Help verify it.
Born from
In October 2012 Microsoft previewed TypeScript, a JavaScript-like language that compiles to plain JavaScript. Anders Hejlsberg argued that building large JavaScript applications successfully was simply too difficult, and that JavaScript's dynamic type system made it impossible to build an IDE like Visual Studio that worked with it. The language was built to add types on top of JavaScript, so any valid JavaScript is also valid TypeScript.
What it trades away
Cost: Types exist only at compile time, so a value from a server or a user can break a type at run time, and every project keeps a compile step to maintain.
Where it fits
| Slot | Fit | |
|---|---|---|
| browser | ●●● | Compiles to JavaScript, so it runs wherever JavaScript does. |
| server | ●●○ | Runs on Node.js after compilation. |
| cli | ●●○ | |
| embedded | ○○○ | It compiles to JavaScript, so it needs a JavaScript runtime that microcontrollers do not have. |
Why it exists
In October 2012 Microsoft previewed TypeScript, a JavaScript-like language that compiles to plain JavaScript (TechCrunch). Anders Hejlsberg argued that building large JavaScript applications successfully was simply too difficult. He also said JavaScript’s dynamic type system made it impossible to build an IDE like Visual Studio that worked with it (The Register). The answer was to build on JavaScript rather than replace it: any valid JavaScript is also valid TypeScript, so existing code kept working.
What it trades away
TypeScript adds a compile step and a second layer that has to stay in step with the code. Its types exist only at compile time, so data that arrives from a server or a user is untyped until a check runs, and the checks cover only the code the compiler sees. Projects must keep the compiler, the configuration and the type declarations for their libraries up to date. The project describes itself as a language that “builds on JavaScript, giving you better tooling at any scale” (TypeScript), and the price of that tooling is the extra layer.
Where it won
Angular 2 was announced as built with TypeScript in March 2015 (Microsoft TypeScript blog). Slack moved its desktop app to TypeScript and wrote that TypeScript “was such a boon to our stability and sanity” (Slack Engineering). Airbnb’s migration had converted 86 % of its frontend, about 6 million lines, by August 2020 (InfoQ). In the 2024 State of JavaScript survey, 67 % of respondents said they wrote more TypeScript than JavaScript (State of JS). In the 2025 Stack Overflow survey, 43.6 % of respondents used it (Stack Overflow).
Named wins
- Angular 2 announced as built with TypeScript in March 2015 source
- Slack's desktop app ported to TypeScript, which Slack called a boon to stability source
- Airbnb's frontend, 86 % converted to TypeScript (about 6 million lines) by August 2020 source
- 67 % of State of JS 2024 respondents wrote more TypeScript than JavaScript source
Evolution
Reacts to: JavaScript
Weigh it against: JavaScript, Dart, Go
Timeline
- 2012Microsoft previews TypeScript, a JavaScript-like language that compiles to JavaScript source
- 2014TypeScript 1.0 is announced on April 2 source
- 2015Angular 2 is announced as built with TypeScript on March 5 source
- 2017Slack publishes how it moved its desktop app to TypeScript source
- 2023TypeScript 5.0 is released, aiming to make TypeScript smaller, simpler and faster source
Links
Sources
- https://techcrunch.com/2012/10/01/microsoft-previews-new-javascript-like-programming-language-typescript/
- https://www.theregister.com/software/2012/11/03/microsoft-typescript-isnt-a-javascript-killer/717785
- https://devblogs.microsoft.com/typescript/announcing-typescript-1-0/
- https://devblogs.microsoft.com/typescript/angular-2-built-on-typescript/
- https://slack.engineering/typescript-at-slack/
- https://www.infoq.com/news/2020/08/airbnb-typescript-migration
- https://2024.stateofjs.com/en-US/usage/
- https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/
- https://survey.stackoverflow.co/2025/technology/
- https://www.typescriptlang.org/
Unverified draft, 2026-10-30.Edit the facts · edit the story · JSON · Markdown