API reference/Type strip
Type strip
Type stripping replaces erasable TypeScript syntax with spaces, preserving UTF-16 offsets and line breaks. Syntax that needs runtime code, such as enums, requires the transformer.
Example
Input
Output
Type stripping replaces erasable TypeScript syntax with spaces, preserving UTF-16 offsets and line breaks. Syntax that needs runtime code, such as enums, requires the transformer.