UNPKG

nestjs-transaction

Version:

A library that extracts and provides only some of the functions of the 'typeorm-transactional' npm module that are needed to operate in the Nestjs + TypeORM environment

7 lines (6 loc) 397 B
type TransactionCallBack = (...param: unknown[]) => Promise<unknown> | unknown; export declare const runOnTransactionCommit: (cb: TransactionCallBack) => void; export declare const runOnTransactionRollback: (cb: TransactionCallBack) => void; export declare const emitAsyncOnCommitEvent: () => Promise<void>; export declare const emitAsyncOnRollBackEvent: (e: unknown) => Promise<void>; export {};