Erasing TypeScript
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Node.js 23.6 has introduced experimental support for running TypeScript files directly using the `--experimental-strip-types` mode, which requires the TypeScript syntax to be fully erasable. TypeScript 5.8 beta addresses this with a new `--erasableSyntaxOnly` flag to restrict the code to features that can be erased cleanly. This marks a significant step towards eliminating the need for a TypeScript build step and aligns with the growing trend of treating types as comments in JavaScript.
10 Comments
Sort: