payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
10 lines • 641 B
TypeScript
import type { Data, FormState } from '../admin/types.js';
/**
* Reduce flattened form fields (Fields) to just map to the respective values instead of the full FormField object
*
* @param unflatten This also unflattens the data if `unflatten` is true. The unflattened data should match the original data structure
* @param ignoreDisableFormData - if true, will include fields that have `disableFormData` set to true, for example, blocks or arrays fields.
*
*/
export declare const reduceFieldsToValues: (fields: FormState, unflatten?: boolean, ignoreDisableFormData?: boolean) => Data;
//# sourceMappingURL=reduceFieldsToValues.d.ts.map