experimentalDecorators
The compiler option that enables TypeScript's older, non-standard decorators used by frameworks such as Angular.
In more detail
They predate the standard and have different signatures, and often rely on emitDecoratorMetadata. Without this flag, TypeScript 5 uses standard decorators.
Related terms
- decorator — A line starting with @ placed above a function or class that wraps it to add behaviour or information.
Taught in
- Modern Decorators: Stage 3 Standards And Class Metadata — Production TypeScript