Zod · Type Alias
ZodString
ZodString is the core schema type for validating strings. In the normal Zod API, create one with z.string(), then parse data or add string-format and length checks.
Last updated
Syntax
z.string()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
$ZodType$ZodStringFormatTypes$ZodCheckz.string()z.email()z.url()z.parsez.safeParse