Module

x/zod/mod.ts>z.ZodError

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class z.ZodError
extends Error
import { z } from "https://dotland.deno.dev/x/zod@v3.19.1/mod.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
import z.ZodError
import { z } from "https://dotland.deno.dev/x/zod@v3.19.1/mod.ts";
const { ZodError } = z;