Skip to main content

$tuple

Callable


  • Create a new TupleType instance with the given options.

    Example

    $tuple([$integer, $string])

    Type parameters

    Parameters

    • items: ConstExprTuple<Elements>

      The items in the tuple.

    • options: SchemaOptions<TupleOptions<Rest>, TupleToInfer<Elements>> = {}

      Additional options to pass to the tuple.

    Returns TupleType<Elements, Rest>