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
16 lines
778 B
Plaintext
16 lines
778 B
Plaintext
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 |