UNPKG

payload

Version:

Node, React and MongoDB Headless CMS and Application Framework

11 lines 655 B
import type { Data, Fields } from './types'; /** * 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. * */ declare const reduceFieldsToValues: (fields: Fields, unflatten?: boolean, ignoreDisableFormData?: boolean) => Data; export default reduceFieldsToValues; //# sourceMappingURL=reduceFieldsToValues.d.ts.map