Skip to content

itryapitsin2/ts-decorators

Repository files navigation

ts-decorators

Codacy Badge npm version

Branch Build Status Coverage Status Vulnerabilities
Master Build Status Coverage Status Known Vulnerabilities

Installation

npm install ts-decorators --save-dev
# or
yarn add ts-decorators

You also need to set experimentalDecorators and emitDecoratorMetadata to true into the tsconfig.json file.

For example:

{
    "compilerOptions": {
        ...
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        ...
    }
}

Library documentation

Here