Zod · Method
z.void
z.void() creates a Zod schema for undefined. It is equivalent to z.undefined().
Last updated
Syntax
z.void()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
z.undefined()z.null()z.string()z.number()