compiler pipeline

The ordered stages the TypeScript compiler runs: scan and parse into a syntax tree, bind names, check types, then emit JavaScript.

In more detail

The scanner and parser turn characters into an abstract syntax tree. The binder connects each name to its declaration, the checker applies the type rules, and the emitter writes JavaScript and declaration files. Checking and emitting are independent, which is why type errors do not stop output by default.

Related terms

Taught in

References