Skip to main content
Version: Annotations-V1.0.0

Decorators Support

You will need to Add the Following options to the Typescript compiler configurations

$project_directory/tsconfig.json
{
"compilerOptions": {
...
"experimentalDecorators": true,
"emitDecoratorMetadata": true
...
}
}

In Some Cases you'll need more setup. It depends on your project setup and the used framework:

const { override, addBabelPlugin } = require("customize-cra");
const pluginProposalDecorators = require("@babel/plugin-proposal-decorators");

module.exports = override(
addBabelPlugin(pluginProposalDecorators)
);