UNPKG

@nestjs-cls/transactional

Version:

A nestjs-cls plugin for transactional decorators

42 lines 1.77 kB
import { TOptionsFromAdapter } from './interfaces'; import { Propagation } from './propagation'; /** * Run the decorated method in a transaction. * * @param options Transaction options depending on the adapter. */ export declare function Transactional<TAdapter>(options?: TOptionsFromAdapter<TAdapter>): MethodDecorator; /** * Run the decorated method in a transaction. * * @param propagation The propagation mode to use, @see{Propagation}. */ export declare function Transactional<TAdapter>(propagation?: Propagation): MethodDecorator; /** * Run the decorated method in a transaction. * * @param connectionName The name of the connection to use. */ export declare function Transactional<TAdapter>(connectionName?: string): MethodDecorator; /** * Run the decorated method in a transaction. * * @param connectionName The name of the connection to use. * @param options Transaction options depending on the adapter. */ export declare function Transactional<TAdapter>(connectionName: string, options?: TOptionsFromAdapter<TAdapter>): MethodDecorator; /** * Run the decorated method in a transaction. * * @param connectionName The name of the connection to use. * @param propagation The propagation mode to use, @see{Propagation}. */ export declare function Transactional<TAdapter>(connectionName: string, propagation?: Propagation): MethodDecorator; /** * Run the decorated method in a transaction. * * @param propagation The propagation mode to use, @see{Propagation}. * @param options Transaction options depending on the adapter. */ export declare function Transactional<TAdapter>(connectionName: string, propagation: Propagation, options?: TOptionsFromAdapter<TAdapter>): MethodDecorator; //# sourceMappingURL=transactional.decorator.d.ts.map