Typeseedcordv0.10.6
TupleOf
Create a tuple type of the specified length with elements of the specified type.
type TupleOf<
Length extends number,
Fill = unknown
> = IfNotAnyOrNever<
Length,
_TupleOf<
If<IsNegative<Length>, 0, Length>,
Fill,
[]
>,
Fill[],
[]
>;type TupleOf<
Length extends number,
Fill = unknown
> = IfNotAnyOrNever<
Length,
_TupleOf<
If<IsNegative<Length>, 0, Length>,
Fill,
[]
>,
Fill[],
[]
>;