TypeScript 5.8 has been released with various enhancements such as granular checks for branches in return expressions, support for `require()` of ECMAScript modules in `--module nodenext`, a new `--erasableSyntaxOnly` option for flagging TypeScript-specific constructs with runtime behavior, the ability to disable default lib file lookups with `--libReplacement`, and optimizations for program loads and updates. Key changes also include preserved computed property names in declaration files and notable changes to `lib.d.ts` types.
Table of contents
What’s New Since the Beta and RC? Copy linkGranular Checks for Branches in Return Expressions 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 link4 Comments
Sort: