microsoft

    microsoft/TypeScript

    #123 this week

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    web
    javascript
    language
    typechecker
    typescript
    TypeScript
    Apache-2.0
    109.9K stars
    13.5K forks
    109.9K GitHub watchers
    Updated 7/18/2026
    View on GitHub

    Backblaze Generative Media Hackathon

    Build the next generation of AI media apps with Genblaze, stored on Backblaze B2. $10,000 in prizes.

    Enter the hackathon

    Loading star history...

    Use Cases & Benefits

    • A superset of JavaScript that adds optional static types and compiles to clean, standards-based JavaScript.
    • Enables scalable, maintainable codebases with type safety and tooling support for any browser, host, or OS.
    • Use for building large-scale web applications requiring robust type checking and improved developer tooling.
    • Use for migrating existing JavaScript projects to a typed language incrementally without losing compatibility.
    • Use for developing cross-platform JavaScript libraries with enhanced code quality and early error detection.

    About TypeScript

    TypeScript

    CI npm version Downloads OpenSSF Scorecard

    TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account.

    Find others who are using TypeScript at our community page.

    Installing

    For the latest stable version:

    npm install -D typescript
    

    For our nightly builds:

    npm install -D typescript@next
    

    Contribute

    There are many ways to contribute to TypeScript.

    This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

    Documentation

    Roadmap

    For details on our planned features and future direction, please refer to our roadmap.

    Discover Repositories

    Search across tracked repositories by name or description