UNPKG

payload

Version:

Node, React and MongoDB Headless CMS and Application Framework

11 lines 554 B
import type { Field, FieldAffectingData, FieldPresentationalOnly } from '../fields/config/types'; /** * Flattens a collection's fields into a single array of fields, as long * as the fields do not affect data. * * @param fields * @param keepPresentationalFields if true, will skip flattening fields that are presentational only */ declare const flattenFields: (fields: Field[], keepPresentationalFields?: boolean) => (FieldAffectingData | FieldPresentationalOnly)[]; export default flattenFields; //# sourceMappingURL=flattenTopLevelFields.d.ts.map