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
27 lines
969 B
Plaintext
27 lines
969 B
Plaintext
import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
|
|
import type { SanitizedGlobalConfig } from '../../../globals/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;
|
|
/**
|
|
* The data before hooks
|
|
*/
|
|
data: T;
|
|
/**
|
|
* The data after hooks
|
|
*/
|
|
doc: T;
|
|
global: null | SanitizedGlobalConfig;
|
|
operation: 'create' | 'update';
|
|
previousDoc: T;
|
|
req: PayloadRequest;
|
|
};
|
|
/**
|
|
* This function is responsible for the following actions, in order:
|
|
* - Execute field hooks
|
|
*/
|
|
export declare const afterChange: <T extends JsonObject>({ collection, context, data, doc: incomingDoc, global, operation, previousDoc, req, }: Args<T>) => Promise<T>;
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map |