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
20 lines
833 B
Plaintext
20 lines
833 B
Plaintext
import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
|
|
import type { RequestContext } from '../../../index.js';
|
|
import type { JsonObject, PayloadRequest } from '../../../types/index.js';
|
|
type Args<T extends JsonObject> = {
|
|
collection: null | SanitizedCollectionConfig;
|
|
context: RequestContext;
|
|
doc?: T;
|
|
id?: number | string;
|
|
overrideAccess: boolean;
|
|
req: PayloadRequest;
|
|
};
|
|
/**
|
|
* This function is responsible for running beforeDuplicate hooks
|
|
* against a document including all locale data.
|
|
* It will run each field's beforeDuplicate hook
|
|
* and return the resulting docWithLocales.
|
|
*/
|
|
export declare const beforeDuplicate: <T extends JsonObject>({ id, collection, context, doc, overrideAccess, req, }: Args<T>) => Promise<T>;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |