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
55 lines
2.2 KiB
Plaintext
55 lines
2.2 KiB
Plaintext
import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
|
|
import type { SanitizedGlobalConfig } from '../../../globals/config/types.js';
|
|
import type { RequestContext, TypedFallbackLocale } from '../../../index.js';
|
|
import type { JsonObject, PayloadRequest, PopulateType, SelectMode, SelectType } 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;
|
|
currentDepth: number;
|
|
depth: number;
|
|
doc: JsonObject;
|
|
draft: boolean;
|
|
fallbackLocale: TypedFallbackLocale;
|
|
/**
|
|
* The depth of the current field being processed.
|
|
* Fields without names (i.e. rows, collapsibles, unnamed groups)
|
|
* simply pass this value through
|
|
*
|
|
* @default 0
|
|
*/
|
|
fieldDepth?: number;
|
|
/**
|
|
* fieldPromises are used for things like field hooks. They should be awaited before awaiting populationPromises
|
|
*/
|
|
fieldPromises: Promise<void>[];
|
|
fields: (Field | TabAsField)[];
|
|
findMany: boolean;
|
|
flattenLocales: boolean;
|
|
global: null | SanitizedGlobalConfig;
|
|
locale: null | string;
|
|
overrideAccess: boolean;
|
|
parentIndexPath: string;
|
|
/**
|
|
* @todo make required in v4.0
|
|
*/
|
|
parentIsLocalized?: boolean;
|
|
parentPath: string;
|
|
parentSchemaPath: string;
|
|
populate?: PopulateType;
|
|
populationPromises: Promise<void>[];
|
|
req: PayloadRequest;
|
|
select?: SelectType;
|
|
selectMode?: SelectMode;
|
|
showHiddenFields: boolean;
|
|
siblingDoc: JsonObject;
|
|
triggerAccessControl?: boolean;
|
|
triggerHooks?: boolean;
|
|
};
|
|
export declare const traverseFields: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, fieldDepth, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, triggerAccessControl, triggerHooks, }: Args) => void;
|
|
export {};
|
|
//# sourceMappingURL=traverseFields.d.ts.map |