tsc

The command-line TypeScript compiler, which type-checks a project and writes JavaScript and declaration files.

In more detail

Running tsc in a folder with a tsconfig.json compiles the whole project using that configuration. tsc --noEmit only checks types, which is the usual step in continuous integration. By default tsc still writes JavaScript even when there are type errors, unless noEmitOnError is set.

Examples

bunx tsc --version
tsc --noEmit
tsc --target ES5 app.ts

Related terms

Taught in

References