LinthelmIntroductions to linters, static analysis and code-quality tools

Type checkers

What is TypeScript? An introduction to Microsoft's typed language built on JavaScript

By the Linthelm editorial team · Published · Updated

TypeScript is a strongly typed programming language from Microsoft that builds on JavaScript. It adds types to JavaScript so that errors can be caught, and fixes offered, before the code is run. TypeScript compiles to JavaScript, so the result runs in browsers, Node.js, Deno and Bun.

Tool
TypeScript
Made by
Microsoft
Official site
typescriptlang.org
Category
Type checkers

Who makes TypeScript

TypeScript is a Microsoft language that builds on JavaScript. Microsoft publishes it as a language rather than as a separate checking add-on, and the type system is part of the language itself.

The official website, which hosts the vendor's own documentation and information, is linked below.

Official website: typescriptlang.org

What TypeScript is for

TypeScript extends JavaScript by adding types to the language. Types describe the shape of objects and functions in code, which gives both the developer and the tooling a precise picture of what each value is expected to look like.

The aim is to catch errors and offer fixes before the code is run. Instead of discovering a mistake when a program fails in a browser or on a server, a developer sees it while writing the code. The added syntax integrates tightly with editors, so errors show up early in the editing workflow.

Annotations let TypeScript verify that declared types match how values are used. If a function is declared to take one kind of value and is called with another, the mismatch can be reported without executing anything.

Who TypeScript is for

The vendor does not state a specific audience, but the facts point to JavaScript developers. Because the language only extends JavaScript, existing JavaScript code is already valid TypeScript, and no rewrite is needed to start.

The tooling is described as working at any scale. Types can be adopted gradually in an existing JavaScript project, so a team can introduce them in some files and leave others untouched. Developers who prefer to stay in plain JavaScript files can still get type feedback through comments, covered below.

Notable capabilities

TypeScript combines a type system, editor integration and a compile step. These are the capabilities documented for it:

  • Types for JavaScript: the language adds types on top of JavaScript and describes the shape of objects and functions.
  • Early error reporting: the added syntax integrates tightly with editors so errors show up before code runs.
  • Type inference: TypeScript infers types to provide tooling without extra annotations, so code does not need to be annotated everywhere.
  • Annotation checking: declared types are verified against how values are actually used.
  • Gradual adoption: types can be introduced step by step in an existing JavaScript project.
  • Checking plain JavaScript: adding a // @ts-check comment to a JavaScript file makes the editor show type errors, and JSDoc comments can supply type information for plain JavaScript files.
  • Compilation to JavaScript: output runs in browsers, Node.js, Deno and Bun, and type annotations are removed in the conversion.

How TypeScript fits type checkers

In the category of type checkers, TypeScript is unusual because the checker and the language are one product. It is a strongly typed language built on JavaScript rather than a separate program run over untyped code, although the // @ts-check comment and JSDoc support let it check plain JavaScript files as well.

Within Linthelm's wider niche of linters, static analysis and code quality, a type checker covers a specific layer. Linters typically flag style problems and suspicious patterns, while a type checker verifies that values are used consistently with their declared types. TypeScript does this statically, before the program runs, and surfaces the results in the editor.

Because type annotations are removed when TypeScript is converted to JavaScript, the types serve development-time checking and tooling. The JavaScript that ships is what runs in the browser or runtime.

Frequently asked questions

What is TypeScript used for?

TypeScript is used to add types to JavaScript so that errors can be caught, and fixes offered, before code is run. It integrates with editors so mistakes show up early.

Who develops TypeScript?

TypeScript is a language from Microsoft that builds on JavaScript.

Is JavaScript code valid TypeScript?

Yes. Because TypeScript only extends JavaScript, existing JavaScript code is valid TypeScript.

Can I check a JavaScript file without converting it?

Adding a // @ts-check comment to a JavaScript file makes the editor show type errors. JSDoc comments can supply type information for plain JavaScript files.

Where does TypeScript code run?

TypeScript compiles to JavaScript, which runs in browsers, Node.js, Deno and Bun. Type annotations are removed during that conversion.

Sources. This introduction is based on the vendor's official pages, checked on 21 November 2026 (Asia/Dhaka):

Linthelm is independent and is not affiliated with Microsoft. Product names belong to their owners. Features change; confirm details on the official website.