flâneur — a map of the web's best reading

TypeScript: Documentation - Decorators

typescriptlang.org · 3,165 words · saved by 1 readers

TypeScript Decorators overview

NOTE This document refers to an experimental stage 2 decorators implementation. Stage 3 decorator support is available since Typescript 5.0. See: Decorators in Typescript 5.0 Introduction With the introduction of Classes in TypeScript and ES6, there now exist certain scenarios that require additional features to support annotating or modifying classes and class members. Decorators provide a way to add both annotations and a meta-programming syntax for class declarations and members. Further Reading (stage 2): A Complete Guide to TypeScript Decorators To enable experimental support for decorato

Explore this link on the map →

related reading