Skip to main content

TypeScript 5 Decorators Are Standard Now

TypeScript 5.0 shipped Stage 3 decorators that match the eventual JavaScript proposal. @logged on a method or @Component on a class works without the experimental flag.The shape ch…

April 21, 2026 JavaScript chris 1 min read TypeScript

Article takeaway

TypeScript 5.0 shipped Stage 3 decorators that match the eventual JavaScript proposal. @logged on a method or @Component on a class works without the experimental flag.The shape ch…

TypeScript 5.0 shipped Stage 3 decorators that match the eventual JavaScript proposal. @logged on a method or @Component on a class works without the experimental flag.

The shape changed from the experimental version: decorators receive a context object with kind, name, and access helpers. Stage 3 also added the ability to replace the decorated value.

For framework authors this is a one-time porting cost. For app code, the benefit is decorators that survive a migration off experimental flags.

Share X / Twitter LinkedIn

Leave a comment

Related Posts