UNPKG

payload

Version:

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

16 lines 778 B
import type { Data } from '../admin/types.js'; import type { Field, TabAsField } from '../fields/config/types.js'; import type { SelectMode, SelectType } from '../types/index.js'; /** * This is used for the Select API to strip out fields that are not selected. * It will mutate the given data object and determine if your recursive function should continue to run. * It is used within the `afterRead` hook as well as `getFormState`. * @returns boolean - whether or not the recursive function should continue */ export declare const stripUnselectedFields: ({ field, select, selectMode, siblingDoc, }: { field: Field | TabAsField; select: SelectType; selectMode: SelectMode; siblingDoc: Data; }) => boolean; //# sourceMappingURL=stripUnselectedFields.d.ts.map