Optional
descriptionOptional
value: TOptional
def: $ZodObjectDef<Shape>Optional
params: { parent: boolean }Returns a new instance that has been registered in z.globalRegistry
with the specified description
Returns the metadata associated with this instance in z.globalRegistry
Returns a new instance that has been registered in z.globalRegistry
with the specified metadata
Optional
params: Optional
error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>Optional
message?: stringOptional
params: ParseContext<$ZodIssue>Optional
params: ParseContext<$ZodIssue>Optional
params: Optional
abort?: booleanIf true, no later checks will be executed if this check fails. Default false
.
Optional
error?: string | $ZodErrorMap<NonNullable<$ZodIssue>>Optional
message?: stringOptional
params?: Record<string, any>Optional
path?: PropertyKey[]Optional
params: ParseContext<$ZodIssue>Optional
params: ParseContext<$ZodIssue>
Deprecated
Use
.def
instead.