Skip to Content
APIFunctionsFunction: defineInferredForm()

Hero Hook Form API v2.15.0


Hero Hook Form API / defineInferredForm

Function: defineInferredForm()

defineInferredForm<T>(fieldDefinitions): object

Defined in: builders/TypeInferredBuilder.ts:436 

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>[]