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
16 lines (15 loc) • 686 B
TypeScript
import { LazyDecorator, WrapParams } from '@toss/nestjs-aop';
import { TransactionEventListener } from '../interfaces';
import { ModuleRef } from '@nestjs/core';
import { TransactionHookOption } from '../decorators';
export declare class ALSTransactionEventListenerAspect implements LazyDecorator<any> {
protected moduleRef: ModuleRef;
constructor(moduleRef: ModuleRef);
wrap({ method, metadata }: WrapParams<any, TransactionHookOption>): (...args: any) => any;
/**
* add listener to store
* - must be called after storage.run()
*/
protected addListenerToStore(listener: TransactionEventListener, args: unknown[]): void;
private getTransaction;
}