Feature in next week’s #TypeScript 5.8 Beta: --erasableSyntaxOnly
• Pull request: https://github.com/microsoft/TypeScript/pull/61011
• Description (with an old name): https://github.com/microsoft/TypeScript/issues/59601#issuecomment-2294010520
Forbids non-type syntax that isn’t JavaScript—e.g. enums and namespaces.
Use case: TypeScript support in Node.js. https://2ality.com/2025/01/nodejs-strip-type.html
/via @robpalmer