TypeScript 5.8 Beta introduces several new features, including support for conditional and indexed access types, improved interoperability between ECMAScript modules and CommonJS with the `--module nodenext` flag, the `--erasableSyntaxOnly` option to ensure compatibility with Node.js' experimental TypeScript support, and optimizations for program loads and updates. Additionally, it incorporates new flags like `--module node18` and `--libReplacement` for better fine-tuning of module behaviors and library replacement lookups.
Table of contents
Checked Returns for Conditional and Indexed Access Types Copy linkSupport for require() of ECMAScript Modules in --module nodenext Copy link--module node18 Copy linkThe --erasableSyntaxOnly Option Copy linkThe --libReplacement Flag Copy linkPreserved Computed Property Names in Declaration Files Copy linkOptimizations on Program Loads and Updates Copy linkNotable Behavioral Changes Copy linkWhat’s Next? Copy linkSort: