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
26 lines (25 loc) • 662 B
TypeScript
export declare class TransactionalError extends Error {
name: string;
}
export declare class NoRegistedDataSourceError extends TransactionalError {
name: string;
constructor();
}
export declare class TypeOrmUpdatedPatchError extends TransactionalError {
name: string;
constructor();
}
/**
* Error that occurs when a transaction is not rolled back
*/
export declare class NotRollBackError extends TransactionalError {
/**
* Original error that occurred during transaction
*/
readonly originError: unknown;
constructor(
/**
* Original error that occurred during transaction
*/
originError: unknown);
}