Class ZodUnion<T>

Type Parameters

Hierarchy (view full)

Constructors

Properties

_def: ZodUnionDef<T>
_input: T[number]["_input"]
_output: T[number]["_output"]
_type: T[number]["_output"]
spa: ((data, params?) => Promise<SafeParseReturnType<T[number]["_input"], T[number]["_output"]>>)

Alias of safeParseAsync

Type declaration

create: (<T_1>(types, params?) => ZodUnion<T_1>)

Type declaration

Accessors

  • get description(): undefined | string
  • Returns undefined | string

  • get options(): T
  • Returns T

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T[number]["_output"]

  • Parameters

    Returns Promise<T[number]["_output"]>

Generated using TypeDoc