noEmitOnError

The compiler option that stops tsc from writing any JavaScript if the project has type errors.

In more detail

By default tsc emits JavaScript even with type errors, because badly typed code may still run. Setting noEmitOnError prevents broken code from being shipped by a build that only looks at the output files.

Related terms

Taught in

References