The first beta version of TypeScript 5.0 has been released. This release brings many new features, such as implementing a new decorator standard, better support for ESM projects in Node and packaging tools, new ways for library authors to control generic inference, extending JSDoc functionality, simplified configuration, and other improvements introduced. The goal is to make TypeScript smaller, simpler, and faster.
major changes
- new decorator
const
type parameterextends
Support for multiple configuration filesenums
The type has become Unionenums
--moduleResolution bundler
- Resolution Customization Flags
--verbatimModuleSyntax
- support
export type *
- JSDoc support
@satisfies
- JSDoc support
@overload
- Support for
--build
passing Emit-Specific Flags - perfect
switch
/case
- Optimized for speed, memory and package size
- breaking change