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
18 lines (17 loc) • 648 B
TypeScript
export interface StoreOption {
/**
* Set the maximum number of event listeners for the transaction.
* - If you set a value greater than 'maxEventListeners', you will see a warning.
*
* @default 100
* @NOTE [EventEmitter2 Docs](https://www.npmjs.com/package/eventemitter2) for more information.
*/
maxEventListeners: number;
}
export declare const DEFAUL_MAX_EVENT_LISTENERS = 100;
/**
* StoreOption is a global option for the transaction module.
*/
export declare const storeOption: StoreOption;
export declare const ON_COMMIT_EVENT_NAME = "commit";
export declare const ON_ROLLBACK_EVENT_NAME = "rollback";