Skip to Content
ContentAPIFunctionsFunction: defineInferredForm()

Hero Hook Form API v2.5.1


Hero Hook Form API / defineInferredForm

Function: defineInferredForm()

defineInferredForm<T>(fieldDefinitions): object

Defined in: builders/TypeInferredBuilder.ts:410 

Define a form with type inference

Type Parameters

T

T extends FieldValues

Parameters

fieldDefinitions

(builder) => TypeInferredBuilder<T>

Returns

object

schema

schema: ZodType<T>

fields

fields: ZodFormFieldConfig<T>[]