Hero Hook Form API / createZodFormConfig
Function: createZodFormConfig()
createZodFormConfig<
TFieldValues>(schema,fields,defaultValues?):ZodFormConfig<TFieldValues>
Defined in: zod-integration.ts:62
Helper function to create Zod form configurations
Type Parameters
TFieldValues
TFieldValues extends FieldValues
Parameters
schema
ZodType<TFieldValues>
fields
ZodFormFieldConfig<TFieldValues>[]
defaultValues?
Partial<TFieldValues>
Returns
ZodFormConfig<TFieldValues>