FromZodSchemaOptions
Defined in: core/src/utils/zod.ts:34
Options for fromZodSchema.
Properties
Section titled “Properties”async?
Section titled “async?”
optionalasync?:boolean
Defined in: core/src/utils/zod.ts:47
Parse with safeParseAsync instead of safeParse, for a schema with an
async refinement or transform. zod refuses such a schema on the
synchronous path, for valid and invalid input alike.
The validator then returns a promise, so it runs where async validators
do: validate() and callMethodWithValidation(). callMethod(), and
the query and mutation hooks and factories that call it, run validators
synchronously and refuse the call.
Default
Section titled “Default”false