node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { Knex } from 'knex';
export type Callback = (...args: any[]) => Promise<any> | any;
export interface TransactionObject {
commit: () => Promise<void>;
rollback: () => Promise<void>;
get: () => Knex.Transaction;
}
export interface Store {
trx: Knex.Transaction | null;
commitCallbacks: Callback[];
rollbackCallbacks: Callback[];
}
declare const transactionCtx: {
run<TCallback extends Callback>(trx: Knex.Transaction, cb: TCallback): Promise<ReturnType<TCallback>>;
get(): Knex.Transaction<any, any[]> | null | undefined;
commit(trx: Knex.Transaction): Promise<void>;
rollback(trx: Knex.Transaction): Promise<void>;
onCommit(cb: Callback): void;
onRollback(cb: Callback): void;
};
export { transactionCtx };
//# sourceMappingURL=transaction-context.d.ts.map