TypeScript
Typed superset of JavaScript that adds static types and tooling for large codebases.
Overview
TypeScript is a strongly typed programming language that extends JavaScript by adding static type checking. It allows developers to catch errors early in their editor before code runs, improving development experience and code reliability at scale.
The language compiles to standard JavaScript that runs anywhere JavaScript runs—in browsers, Node.js, Deno, Bun, and other environments. TypeScript can be adopted gradually into existing JavaScript projects, with types added incrementally to improve editor support and code quality.
TypeScript provides powerful editor integration with auto-complete, interfaces, and JSX support. It has become widely adopted, ranked as the 2nd most loved programming language in the Stack Overflow 2020 Developer Survey, with 78% of respondents using it and 93% saying they would use it again.
Key features
- Static type checking
- Editor auto-complete and IntelliSense
- Compiles to standard JavaScript
- Gradual adoption support
- Interface and type definitions
- JSX support
- Type inference
- Comprehensive tooling integration
- Catches errors before runtime
- Excellent editor integration
- Runs anywhere JavaScript runs
- Can be adopted incrementally
- Strong community and ecosystem
- Voted 2nd most loved programming language
- Requires compilation step
- Learning curve for JavaScript developers new to types
- Additional setup and configuration needed
- Type annotations add verbosity to code
Best for
Alternatives
More Language
Compare allThe web's core programming language for interactive pages, apps, and full-stack development.