README.md

//before use
1.Install reflect-metadata package:

npm install reflect-metadata –save

and import it somewhere in the global place of your app before any decorator usage or import:

import “reflect-metadata”;

2.You may need to install node typings:

npm install @types/node –save

3.Enabled following settings in tsconfig.json:

“emitDecoratorMetadata”: true, “experimentalDecorators”: true,

//usage
import from ‘@workstation/lib-atomic-decorator’; import { DataProvider, DataDto }

class Example1 { constructor(private readonly dataProvider: DataProvider) { }

@nextikify(2000) getData(): DataDto { return this.dataProvider.getData(); } }

Конвейеры
0 успешных
0 с ошибкой