Class ZodDiscriminatedUnion<Discriminator, Options>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_input: Zod.z.input<Options[number]>
_output: Zod.z.output<Options[number]>
_type: Zod.z.output<Options[number]>
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<
    Zod.z.SafeParseReturnType<
        Zod.z.input<Options[number]>,
        Zod.z.output<Options[number]>,
    >,
>

Alias of safeParseAsync

Accessors

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

  • get options(): Options
  • Returns Options

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean