Type Parameters

  • T = any

Hierarchy

  • Error
    • ZodError

Constructors

  • Type Parameters

    • T = any

    Parameters

    Returns ZodError<T>

Properties

addIssue: ((sub) => void)

Type declaration

    • (sub): void
    • Parameters

      Returns void

addIssues: ((subs?) => void)

Type declaration

    • (subs?): void
    • Parameters

      Returns void

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

Type declaration

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      Returns any

stackTraceLimit: number

Accessors

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

  • get isEmpty(): boolean
  • Returns boolean

  • get message(): string
  • Returns string

Methods

  • Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc