UNPKG

@nestjs-cls/transactional

Version:

A nestjs-cls plugin for transactional decorators

30 lines 1.04 kB
import { TransactionalAdapter } from './interfaces'; export interface NoOpTransactionalAdapterOptions { /** * The value to use as the `tx` property in the adapter. */ tx?: any; /** * The injection token for */ txToken?: any; disableWarning?: boolean; } /** * A no-op transactional adapter that does not actually start a transaction. * * Useful for testing purposes or making sure that the TransactionHost is wired up correctly. */ export declare class NoOpTransactionalAdapter implements TransactionalAdapter<any, any, any> { private readonly logger; private disableWarning; connectionToken?: any; connection?: any; defaultTxOptions?: any; constructor(options: NoOpTransactionalAdapterOptions); optionsFactory: (connection: any) => { wrapWithTransaction: (_options: any, fn: (...args: any[]) => Promise<any>, setTx: (client?: any) => void) => Promise<any>; getFallbackInstance: () => any; }; } //# sourceMappingURL=no-op-transactional-adapter.d.ts.map