TypeScript 5.8 introduces a new flag called erasableSyntaxOnly that disables features like enums, namespaces, and class parameter properties, marking them as errors. This ensures easier handling for bundlers, especially with Node's recent TypeScript support. The TypeScript team is considering a future where such syntax is

2m read timeFrom totaltypescript.com
Post cover image
Table of contents
What Does erasableSyntaxOnly Do?What Does 'erasable' Mean?Why Is erasableSyntaxOnly Being Added?What about import aliases?When Will This Land?
1 Comment

Sort: