type stripping

Running TypeScript by deleting the type annotations and executing what is left, without checking the types.

In more detail

Bun, tsx and recent Node.js versions run .ts files this way, which gives very fast feedback during development. Because nothing is type-checked, a production pipeline still runs tsc. Node.js only supports syntax that can be erased, so features that generate code, such as enums, need a flag or a full compiler.

Related terms

Taught in

References