@lido-nestjs/decorators
v1.0.0
Published
Nestjs Decorators for Lido Finance projects. Part of [Lido NestJS Modules](https://github.com/lidofinance/lido-nestjs-modules/#readme)
Downloads
1,144
Readme
Nestjs Decorators
Nestjs Decorators for Lido Finance projects. Part of Lido NestJS Modules
Install
yarn add @lido-nestjs/decorators
Usage
OneAtTime
The decorator does not allow to call the method more than once at a time.
import { OneAtTime } from '@lido-nestjs/decorators';
export class TestService {
@OneAtTime()
async foo() {
// do some async work
}
}