1.0.0 • Published 1 year ago
@catalist-nestjs/decorators v1.0.0
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
}
}