Skip to Content
APIFunctionsFunction: createMaxLengthSchema()

Hero Hook Form API v2.15.0


Hero Hook Form API / createMaxLengthSchema

Function: createMaxLengthSchema()

createMaxLengthSchema(max, fieldName): ZodString

Defined in: utils/validation.ts:17 

Creates a maximum length validation schema

Parameters

max

number

fieldName

string

Returns

ZodString