1.0.0 • Published 2 years ago

@lido-nestjs/decorators v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
  }
}