Skip to content

Tutorials

Use these tutorials to learn the main decorator construction workflows before reading the complete API reference.

Learning path

TutorialFocus
Modern decoratorsCreate checked Stage 3 decorators and store metadata.
Legacy decoratorsWork with TypeScript experimental decorators and unified contexts.
Compatible decoratorsShare decorators between legacy and modern builds.
Unified Decorator APIUnderstand the create unified context across Legacy and Compatible.
General DecoratorsBuild decorators that auto-adapt to the element kind — create, dispatch, and pitfalls.
CompositionCombine multiple decorators safely — execution order, replacement chaining, and module-specific behavior.
MetadataBuild class configuration through modern decorator metadata.