import { TransactionIsolationType, TransactionPropagationType } from "../../../enum"; import { ITransaction } from "../../interface"; import { ConstructorType } from "../../type"; export default class Transaction implements ITransaction { isolation: TransactionIsolationType; propagation: TransactionPropagationType; cost: ConstructorType; methodName: string; method: Function; constructor({ isolation, propagation, cost, methodName, method }?: { isolation?: TransactionIsolationType | undefined; propagation?: TransactionPropagationType | undefined; cost?: typeof Transaction | undefined; methodName?: string | undefined; method?: (() => void) | undefined; }); }