qmetrics.net

TypeScript

Typed JavaScript language with compile-time checks

TypeScript screenshot

TypeScript adds optional static types to JavaScript and compiles to standard JavaScript. It targets application-scale code on browsers, Node.js, and other JavaScript runtimes.

Overview

TypeScript is a programming language built on JavaScript. It adds syntax for types so editors can catch mistakes before code runs and surface auto-complete, interfaces, and JSX-related checks. Typed source is removed during compilation, leaving plain JavaScript that runs wherever JavaScript runs.

Developers can adopt typing gradually on existing JavaScript using checks or JSDoc, or write fully typed files with interfaces, unions, and explicit parameter types. The language is meant for large-scale JavaScript work across browsers and hosts on common operating systems.

Output is readable, standards-based JavaScript. Tooling integrates with editors for in-editor error reporting and fixes. Learning material includes a short introduction, a handbook, and an online playground.

TypeScript is widely used in ecosystems such as Angular, Vue, Jest, Redux, and Deno, and can be installed via npm or tried in the browser playground.

Key features

  • Optional static types on JavaScript
  • Compiles to standard JavaScript
  • Editor error checking and autocomplete
  • Interfaces and type aliases
  • JSX support
  • Gradual typing with JSDoc or ts-check
  • Type inference for tooling
  • Runs wherever JavaScript runs

Use cases

  • Large JavaScript codebases
  • Catching errors before runtime
  • Describing object and function shapes
  • Incremental typing of legacy JS
  • Cross-platform application JavaScript

Tags

Similar software

Carbon Lang

Experimental successor language interoperating with C++

Carbon Language is an experimental programming language and toolchain aimed at C++ interoperability, migration, and modernization. It is not ready for production use and remains under active development.

★ 34k⟳ yesterdayApache-2.0 · open core

Roslyn

Open-source C# and Visual Basic compiler platform APIs

Roslyn implements the .NET C# and Visual Basic compilers and exposes APIs for analyzing, refactoring, and generating .NET code in tools and applications.

★ 20.8k⟳ todayMIT

GopherJS

Go to JavaScript compiler for browser front-end code

GopherJS translates Go programs into JavaScript so front-end logic can run in browsers. Install the gopherjs CLI to build, test, and serve packages like the standard go tool.

★ 13.2k⟳ 16 days agoBSD-2-Clause

Halide

Embedded language for fast image and array pipelines

Halide helps write high-performance image and array processing code, embedded in C++ or Python. Pipelines compile to CPUs and multiple GPU compute APIs.

★ 6.6k⟳ todayMIT · open core

The Agda Wiki

Dependently typed functional language and interactive proof assistant

Agda combines a dependently typed functional programming language with an interactive environment for writing and checking constructive proofs.

★ 3k⟳ yesterdayMIT

Dingo

Go meta-language transpiling to idiomatic Go

Dingo is a language that compiles to clean Go code, adding Result types, error propagation, pattern matching, and related syntax while staying compatible with the Go toolchain.

★ 1.9k⟳ 2 months agoApache-2.0