UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

32 lines 1.41 kB
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; field: Field | TabAsField; fieldIndex: number; global: null | SanitizedGlobalConfig; operation: 'create' | 'update'; parentIndexPath: string; parentIsLocalized: boolean; parentPath: string; parentSchemaPath: string; previousDoc: JsonObject; previousSiblingDoc: JsonObject; req: PayloadRequest; siblingData: JsonObject; siblingDoc: JsonObject; siblingFields?: (Field | TabAsField)[]; }; export declare const promise: ({ blockData, collection, context, data, doc, field, fieldIndex, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args) => Promise<void>; export {}; //# sourceMappingURL=promise.d.ts.map