Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zod/index.ts>z.ZodError

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class z.ZodError
extends Error
Re-export
import { z } from "https://deno.land/x/zod@v3.22.2/index.ts";
const { ZodError } = z;

Constructors

new
ZodError(issues: ZodIssue[])

Type Parameters

optional
T = any

Properties

addIssue: (sub: ZodIssue) => unknown
addIssues: (subs?: ZodIssue[]) => unknown
readonly
errors
readonly
formErrors
readonly
isEmpty: boolean
issues: ZodIssue[]
readonly
message

Static Properties

create: (issues: ZodIssue[]) => unknown