UNPKG

nestjs-cls

Version:

A continuation-local storage module compatible with NestJS's dependency injection.

13 lines 671 B
import 'reflect-metadata'; import { ClsDecoratorOptions } from '../cls.options'; /** * Wraps the decorated method in a CLS context. */ export declare function UseCls(): (target: any, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<(...args: any) => Promise<any>>) => void; /** * Wraps the decorated method in a CLS context. * * @param options takes similar options to the enhancers. */ export declare function UseCls<TArgs extends any[]>(options: ClsDecoratorOptions<TArgs>): (target: any, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<(...args: TArgs) => Promise<any>>) => void; //# sourceMappingURL=use-cls.decorator.d.ts.map