Skip to main content

Function: flattenDefinition()

function flattenDefinition(def): Map<string, FlatField>;

Defined in: packages/core/src/migrate/flatten.ts:115

Every named field in the definition, keyed by name.

A duplicate name keeps the FIRST occurrence, matching the validator: a duplicate is already an error there, and picking the first keeps the two agreeing about which one they mean while the author fixes it.

Parameters

ParameterType
defFormDefinition

Returns

Map<string, FlatField>