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
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
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';
|
|
import type { Field, TabAsField } from '../../config/types.js';
|
|
type Args = {
|
|
/**
|
|
* Data of the nearest parent block. If no parent block exists, this will be the `undefined`
|
|
*/
|
|
blockData?: JsonObject;
|
|
collection: null | SanitizedCollectionConfig;
|
|
context: RequestContext;
|
|
data: JsonObject;
|
|
doc: JsonObject;
|
|
fields: (Field | TabAsField)[];
|
|
global: null | SanitizedGlobalConfig;
|
|
operation: 'create' | 'update';
|
|
parentIndexPath: string;
|
|
/**
|
|
* @todo make required in v4.0
|
|
*/
|
|
parentIsLocalized?: boolean;
|
|
parentPath: string;
|
|
parentSchemaPath: string;
|
|
previousDoc: JsonObject;
|
|
previousSiblingDoc: JsonObject;
|
|
req: PayloadRequest;
|
|
siblingData: JsonObject;
|
|
siblingDoc: JsonObject;
|
|
siblingFields?: (Field | TabAsField)[];
|
|
};
|
|
export declare const traverseFields: ({ blockData, collection, context, data, doc, fields, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args) => Promise<void>;
|
|
export {};
|
|
//# sourceMappingURL=traverseFields.d.ts.map |