What is TypeScript?
A quick, grounded definition of TypeScript: what it is, where it came from, and why developers keep reaching for it.
Sources
- [1]TypeScriptwikipedia
- [2]Typescript of the Second Originwikipedia
- [3]JavaScriptwikipedia
- [4]Refinement Types for TypeScriptarxiv
- [5]TypeScript's Evolution: An Analysis of Feature Adoption Over Timearxiv
The short answer
TypeScript (TS) is a high-level programming language that adds static typing with optional type annotations to JavaScript [Source 1]. It's built for large applications, and it transpiles down to plain JavaScript so it can run anywhere JS runs [Source 1]. Microsoft develops it as free and open-source software under the Apache License 2.0 [Source 1].
That's the whole pitch in one paragraph. The rest is detail.
Why it exists
JavaScript is the core language of the Web, alongside HTML and CSS, and as of 2025 it's the most widely used language on GitHub [Source 3]. It was created by Brendan Eich in 1995 and is maintained by Ecma International's TC39 committee [Source 3]. JS is everywhere, but it's dynamically typed, which gets painful as a codebase grows past a few thousand lines.
TypeScript's answer: keep the JavaScript you know, bolt a type system on top, catch a class of bugs before the code ever runs. Because it's designed for developing large applications [Source 1], the type annotations are the headline feature.
Want your work in the Learn library? Apply for a hardlocked byline.