Class ZodTuple<T, Rest>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<
    Zod.z.SafeParseReturnType<
        Zod.z.InputTypeOfTupleWithRest<T, Rest>,
        Zod.z.OutputTypeOfTupleWithRest<T, Rest>,
    >,
>

Alias of safeParseAsync

create: <T_1 extends [] | [Zod.z.ZodTypeAny, ...Zod.z.ZodTypeAny[]]>(
    schemas: T_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodTuple<T_1, null>

Accessors

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

  • get items(): T
  • Returns T

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean