Skip to content
masterclass Buddy

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.

Subscribe
  • z.function()
  • implementAsync()
  • parseAsync()
  • z.object()

Source: Migration guide | Zod. Checked 2026-11-03.