TypeScript

Open Source

by TypeScript

Provided by TypeScript

Not yet rated
Platform
Web
Pricing
Open Source
Account required
No
Ads
None
Last verified
23 hours ago
Developer
TypeScript
Official URL

Overview

TypeScript is a programming language from Microsoft that builds on JavaScript by adding syntax for types. You describe the shape of your data and functions, and the compiler and your editor check the code against those descriptions before it runs, catching mistakes such as reading a property that does not exist.

TypeScript code is turned into plain JavaScript by stripping the types out, so the result runs wherever JavaScript runs: browsers, Node.js, Deno, Bun and apps. Types are often inferred, so much of the benefit comes without writing annotations, and a project can adopt it gradually, starting with type checks on ordinary JavaScript files through JSDoc comments before moving to .ts files.

The official site has a handbook, a download page with npm instructions, and a Playground where you can write TypeScript in the browser and see the JavaScript it produces. The language is open source under the Apache 2.0 licence and developed on GitHub. It suits teams and solo developers working on JavaScript codebases large enough that editor autocomplete and early error checking save time.

Features

  • Static type checking layered on top of standard JavaScript
  • Interfaces and type aliases for describing objects and functions
  • Type inference, so many types do not need to be written out
  • Editor support with errors flagged as you type and auto-complete
  • Compiles to plain JavaScript by removing the types
  • Gradual adoption through JSDoc and type checking of existing JavaScript files
  • JSX support
  • Browser Playground for trying code without installing anything
  • Installed through npm for use in projects

Privacy

See the official privacy policy (the site links to the Microsoft privacy statement). The compiler is open-source software you install and run yourself.

Pros & Cons

Pros

  • Catches many mistakes before the code runs
  • Output is ordinary JavaScript that runs anywhere JavaScript does
  • Can be introduced into an existing JavaScript project step by step
  • Open source under Apache 2.0 with a free handbook and playground

Cons

  • Adds a compile or type-stripping step to the workflow
  • The type system takes time to learn, especially its advanced features
  • Types are removed at build time, so they do not validate data at runtime
  • Libraries without type definitions need extra work

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Provides type definitions for thousands of JavaScript packages.

    Not yet rated
    Open Source Web
  • TypeScript · ts-node

    Runs TypeScript files directly in Node.js.

    Not yet rated
    Open Source Web
  • Lints TypeScript code for errors and style issues.

    Not yet rated
    Open Source Web