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