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

Taught in

References