Module

x/zod/mod.ts>ZodError

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodError
extends Error
import { ZodError } from "https://dotland.deno.dev/x/zod@v3.20/mod.ts";

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 ZodError
import { ZodError } from "https://dotland.deno.dev/x/zod@v3.20/mod.ts";