Class ZodDiscriminatedUnion<Discriminator, Options>

Type Parameters

Hierarchy (view full)

Constructors

Properties

_input: input<Options[number]>
_output: output<Options[number]>
_type: output<Options[number]>
spa: ((data, params?) => Promise<SafeParseReturnType<input<Options[number]>, output<Options[number]>>>)

Alias of safeParseAsync

Type declaration

Accessors

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

  • get options(): Options
  • Returns Options

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

Generated using TypeDoc