Zod · Method
z.promise
z.promise() validates a promise's resolved value against another Zod schema. It is deprecated in Zod 4; usually await the value first and then parse it with the inner schema.
Last updated
Syntax
z.promise(schema)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
z.function()implementAsync()parseAsync()z.object()