Section: IT & Technology · Web DevelopmentDifficulty: Medium

TypeScript

USUK

A typed superset of JavaScript that compiles to plain JavaScript, adding static type checking.

Also: TS

Definition

TypeScript is an open-source programming language developed by Microsoft that extends JavaScript by adding optional static typing and type inference. TypeScript code is transpiled to JavaScript and runs anywhere JavaScript runs. Type annotations enable IDEs to provide better autocompletion, catch type errors at compile time rather than runtime, and make large codebases more maintainable. TypeScript is the dominant choice for large JavaScript applications and is required by frameworks like Angular.

Example

TypeScript catches a type error at compile time when a function expecting a string argument is called with a number — before the code ever runs.

Synonyms

  • typed JavaScript
  • statically typed JS
  • JS superset

Antonyms / Opposites

  • plain JavaScript
  • dynamically typed JavaScript

Images

CC-licensed · free to use
More on Wikimedia
Loading images…

Video

  • javascript
  • react
  • nodejs
  • static-typing

Dictionary Entry

Back to IT & Technology