miter
Version:
A typescript web framework based on ExpressJs based loosely on SailsJs
6 lines (5 loc) • 492 B
TypeScript
export declare type TransactionFunc = ((...args: any[]) => Promise<any>);
export declare type TransactionFuncDescriptor = TypedPropertyDescriptor<TransactionFunc>;
export declare type TransactionDecoratorFunc = (target: Object, propertyKey: string, propertyDescriptor: TransactionFuncDescriptor) => void;
export declare function Transaction(detach?: boolean): TransactionDecoratorFunc;
export declare function Transaction(transactionName: string, detach?: boolean): TransactionDecoratorFunc;