Type Parameters

  • T = any

Hierarchy-Diagram

UML class diagram of ZodError
Legend
icon for a class in the UML class diagram class
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
underlined static property/method

Hierarchy (view full)

Constructors

  • Type Parameters

    • T = any

    Parameters

    Returns ZodError<T>

Properties

addIssue: ((sub: ZodIssue) => void)

Type declaration

addIssues: ((subs?: ZodIssue[]) => void)

Type declaration

issues: ZodIssue[]
name: string
stack?: string
create: ((issues: ZodIssue[]) => ZodError<any>)

Type declaration

Accessors

  • get errors(): ZodIssue[]
  • Returns ZodIssue[]

  • get isEmpty(): boolean
  • Returns boolean

  • get message(): string
  • Returns string

Methods

  • Returns string

  • Parameters

    • value: unknown

    Returns asserts value is ZodError<any>