Thursday, March 16, 2023

TypeScript 5.0: decorators

Announcing TypeScript 5.0 - TypeScript

This release brings many new features, while aiming to make TypeScript smaller, simpler, and faster.We’ve implemented the new decorators standard, added functionality to better support ESM projects in Node and bundlers, provided new ways for library authors to control generic inference, expanded our JSDoc functionality, simplified configuration, and made many other improvements.

The headline feature in 5.0 is likely to be decorators and Daniel does a rather extensive job of showing them off here. Other tweaks include being able to add const modifiers to type parameter declarations, supporting multiple config files in extends, and all enums are now union enums.