Interface: Decorators
Used to configure the decorators syntax.
Remarks
See Decorators.version for more information.
Properties
version?
optionalversion?:"legacy"|"2022-03"
Specify the decorator syntax version to be used.
Default Value
'2022-03'
Remarks
If you want to know the differences between different decorators versions, you can refer to: How does this proposal compare to other versions of decorators?
Examples
'2022-03' corresponds to the Stage 3 decorator proposal, equivalent to the decorator syntax supported by TypeScript 5.0 by default.
'legacy' corresponds to TypeScript's experimentalDecorators: true.