Tutorials
Use these tutorials to learn the main decorator construction workflows before reading the complete API reference.
Learning path
| Tutorial | Focus |
|---|---|
| Modern decorators | Create checked Stage 3 decorators and store metadata. |
| Legacy decorators | Work with TypeScript experimental decorators and unified contexts. |
| Compatible decorators | Share decorators between legacy and modern builds. |
| Unified Decorator API | Understand the create unified context across Legacy and Compatible. |
| General Decorators | Build decorators that auto-adapt to the element kind — create, dispatch, and pitfalls. |
| Composition | Combine multiple decorators safely — execution order, replacement chaining, and module-specific behavior. |
| Metadata | Build class configuration through modern decorator metadata. |