OptionaldescriptionOptionaldef: $ZodObjectDef<$ZodLooseShape>Optionalparams: { parent: boolean }Returns a new instance that has been registered in z.globalRegistry with the specified description
Consider z.looseObject(A.shape) instead
Use A.extend(B.shape) instead.
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
Optionalparams: Optionalerror?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>Optionalmessage?: stringOptionalparams: ParseContext<$ZodIssue>Optionalparams: ParseContext<$ZodIssue>Optionalparams: Optionalabort?: booleanIf true, no later checks will be executed if this check fails. Default false.
Optionalerror?: string | $ZodErrorMap<NonNullable<$ZodIssue>>Optionalmessage?: stringOptionalparams?: Record<string, any>Optionalpath?: PropertyKey[]Optionalwhen?: (payload: ParsePayload) => booleanIf provided, this check will only be executed if the function returns true. Defaults to payload => z.util.isAborted(payload).
Consider z.strictObject(A.shape) instead
This is the default behavior. This method call is likely unnecessary.
Deprecated
Use
.definstead.