Type Alias: FormFieldDefinition
type FormFieldDefinition = Omit<FormField, "fields"> & {
fields?: FormSubFieldDefinition[];
id: string;
};Defined in: shared/forms/field-definitions.ts:56
A top-level form field with a client-side id. Sub-fields are narrowed to
FormSubFieldDefinition so the type can't imply infinite nesting —
the Zod schema only allows one level of sub-fields, and the type should
match.
Type Declaration
fields?
optional fields?: FormSubFieldDefinition[];id
id: string;