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
10 lines
596 B
Plaintext
10 lines
596 B
Plaintext
import type { Job } from '../../../../index.js';
|
|
import type { PayloadRequest } from '../../../../types/index.js';
|
|
export type UpdateJobFunction = (jobData: Partial<Job>) => Promise<Job>;
|
|
/**
|
|
* Helper for updating a job that does the following, additionally to updating the job:
|
|
* - Merges incoming data from the updated job into the original job object
|
|
* - Handles job cancellation by throwing a `JobCancelledError` if the job was cancelled.
|
|
*/
|
|
export declare function getUpdateJobFunction(job: Job, req: PayloadRequest): UpdateJobFunction;
|
|
//# sourceMappingURL=getUpdateJobFunction.d.ts.map |