Top
image credit: Adobe Stock

TypeScript 5.0 retools decorators

March 3, 2023

Via: InfoWorld

TypeScript 5.0, a planned update to Microsoft’s strongly typed JavaScript variant, is now available in a release candidate (RC) version, with a production release slated for March 14. The upgrade aims to modernize decorators for class customization.

Decorators, an upcoming ECMAScript feature, allow for customizing classes and their members in a reusable way, Microsoft noted in a blog post announcing the RC. Decorators can be used on methods, properties, getters, setters, and auto-accessors. Classes can be decorated for subclassing and registration. While TypeScript previously supported experimental decorators, these were modeled on a much older version of the decorators proposal.

Read More on InfoWorld