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)

Type declaration

stackTraceLimit: number

Accessors

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

  • get isEmpty(): boolean
  • Returns boolean

  • get message(): string
  • Returns string

Methods

  • Returns ZodFormattedError<T, string>

  • Type Parameters

    • U

    Parameters

    • mapper: ((issue) => U)
        • (issue): U
        • Parameters

          Returns U

    Returns ZodFormattedError<T, U>

  • Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc