TypeScript · Language and Environment

emitDecoratorMetadata

Emit design-type metadata for decorated declarations in source files.

Syntax
"emitDecoratorMetadata": true

Example

Example
{
  "compilerOptions": {
    "emitDecoratorMetadata": true
  }
}

More in this group

experimentalDecorators jsx jsxFactory jsxFragmentFactory jsxImportSource libReplacement moduleDetection noLib

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course