TC39 Stage 3 decorators — class, method, and field decorators for metadata and cross-cutting concerns.
Five passes over the same idea, each from a different angle. Do them in order, or jump to whichever you need.
Decorators add metadata and behavior to classes, methods, accessors, and fields. TypeScript 5.0+ supports TC39 Stage 3 decorators (different from legacy experimental decorators). Use cases: logging, validation, dependency injection, ORM mappings, and serialization. Understanding both decorator flavors is important for existing codebases.