Repolode
microsoft

microsoft/TypeScript

A typed superset of JavaScript that adds optional static types and compiles to readable, standards-based JavaScript.

Stars
111,543
Forks
16,709
Open issues
5,144
Last commit
9 hours ago

What is it?

TypeScript is a programming language for building application-scale JavaScript. It adds optional type annotations to JavaScript, which enable editor tooling and static checking across large codebases.

TypeScript code compiles to plain JavaScript that runs in any browser, on any host, and on any operating system. The compiler's output is readable and follows web standards, so existing JavaScript can be adopted incrementally.

The project is distributed on npm as the typescript package, with a nightly build available under the next tag. A browser-based playground lets you try the language without installing anything.

Key features

  • 01Optional static types added to JavaScript syntax
  • 02Compiles to readable JavaScript that targets browsers, Node.js and other hosts
  • 03Editor tooling support for large-scale codebases
  • 04Distributed on npm with stable and nightly releases
  • 05Browser-based playground for trying the language

Use cases

  • Building large front-end or Node.js applications that need static type checking
  • Adding types incrementally to an existing JavaScript project
  • Catching type errors during development before code runs

Quick start

  1. 1

    Install the latest stable TypeScript via npm

    npm install -D typescript
  2. 2

    Or install nightly builds via npm

    npm install -D typescript@next
  3. 3

    Try it out in the online playground

Things to know

  • The README does not describe a standalone runtime; it is installed as a compiler package via npm.

Topics

FAQ

What is TypeScript?
A typed superset of JavaScript that adds optional static types and compiles to readable, standards-based JavaScript. TypeScript is a programming language for building application-scale JavaScript. It adds optional type annotations to JavaScript, which enable editor tooling and static checking across large codebases.
Is TypeScript free to use? What license does it have?
TypeScript is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is TypeScript still maintained?
Actively maintained. The last commit to TypeScript was on Oct 21, 2026.
What can I use TypeScript for?
Building large front-end or Node.js applications that need static type checking Adding types incrementally to an existing JavaScript project Catching type errors during development before code runs
How do I install TypeScript?
Install the latest stable TypeScript via npm: npm install -D typescript Or install nightly builds via npm: npm install -D typescript@next Try it out in the online playground
Where can I get TypeScript?
The source code and installation instructions are on GitHub: https://github.com/microsoft/TypeScript

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects