TypeScript

Edit · View history

Overview

TypeScript is a programming language developed and maintained by Microsoft. It is a superset of JavaScript, meaning that any valid JavaScript code is also valid TypeScript code. TypeScript adds optional static typing and other features such as classes, modules, and interfaces to the language. It is designed for the development of large applications and transcompiles to JavaScript, running in any browser or runtime that supports ECMAScript 3 or later.

The language was first publicly announced in October 2012 and was created by Anders Hejlsberg, the lead architect of C# and creator of Turbo Pascal. TypeScript’s type system allows developers to catch errors at compile time rather than at runtime, improving code quality and maintainability. The compiler is itself written in TypeScript and is open-source under the Apache License 2.0.

TypeScript is widely adopted in the web development community, especially for large-scale projects. It is used in frameworks such as Angular, React (via JSX), and Vue.js. The language is supported by most modern IDEs including Visual Studio Code, WebStorm, and Sublime Text.

Features

Compilation

TypeScript source code (.ts files) is compiled into JavaScript (.js files) using the tsc compiler. The output can target any version of ECMAScript (ES3, ES5, ES2015+), and the compiler also supports source maps for debugging.

History

TypeScript continues to evolve, with frequent updates aligning with the latest ECMAScript proposals.

See also

External links