Class ZodUnion<T>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <
    T_1 extends
        readonly [Zod.z.ZodTypeAny, Zod.z.ZodTypeAny, Zod.z.ZodTypeAny],
>(
    types: T_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodUnion<T_1>

Accessors

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

  • get options(): T
  • Returns T

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T[number]["_output"]

  • Parameters

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