Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
8 lines
480 B
Plaintext
8 lines
480 B
Plaintext
import type { MarkRequired } from 'ts-essentials';
|
|
import type { PayloadRequest } from '../types/index.js';
|
|
/**
|
|
* Starts a new transaction using the db adapter with a random id and then assigns it to the req.transaction
|
|
* @returns true if beginning a transaction and false when req already has a transaction to use
|
|
*/
|
|
export declare function initTransaction(req: MarkRequired<Partial<PayloadRequest>, 'payload'>): Promise<boolean>;
|
|
//# sourceMappingURL=initTransaction.d.ts.map |