TypeScript

A typed superset of JavaScript from Microsoft that adds static types and compiles to plain JavaScript.

TypeScript layers an optional, structural type system on top of JavaScript and erases the types at build time. Its compiler and language service power editor features such as autocompletion and safe refactoring across large codebases. Most major front-end and Node.js frameworks now ship first-class TypeScript types, and a native Go port of the compiler is under way to speed up type checking.

Type
Language
Category
Languages
Maintainer
Microsoft
First released
2012
License
Open source (Apache-2.0)
Pricing
Open source
Level
Intermediate
Technologies
typescript, javascript
GitHub stars
112,000
Weekly downloads
464,400,185 (npm)
Latest release
[object Object]
Last verified
26 Nov 2026

What TypeScript is used for

  • Large front-end applications
  • Typed Node.js back ends
  • Shared API contracts between client and server
  • Library authoring with published type definitions

Strengths

  • Catches many errors before runtime
  • Excellent editor tooling
  • Gradual adoption from existing JavaScript
  • Expressive type system (generics, unions, mapped types)

Limitations

  • Adds a compile/type-check step
  • Types are erased, so no runtime validation without extra libraries
  • Advanced types can become hard to read

TypeScript alternatives

How it relates to other tools

Built with the same technologies

Learn TypeScript

Official links

Sources

Explore