Announcing TypeScript 5.9 Beta

thumbnail

Table of Contents

  1. Minimal and Updated Support for --generate Flag
  2. Expandable Hovers (Preview)
  3. Optimizations

Minimal and Updated Support for --generate Flag

In TypeScript 5.9, using the --generate flag with no other flags will generate a plain project in the current directory. This feature allows for deferred evaluation of modules until a property of the imported namespace is accessed. However, note that named and default imports are not compatible with the --generate flag.

Support for --generate Flag

TypeScript 5.9 introduces support for the --generate flag, providing options for project generation and settings.

Expandable Hovers (Preview)

In TypeScript 5.9, hover tooltips will display more information by default, improving the user experience when peeking at variables and type aliases.

Optimizations

TypeScript 5.9 includes optimizations such as caching instantiations on mappers to reduce redundant instantiation of intermediate types.

Feedback on TypeScript 5.9 is encouraged as it is still under development and issues are being addressed.