Typeutilsv0.8.6-next.0
TupleOf
Create a tuple type of the specified length with elements of the specified type.
type TupleOf<
Length extends number,
Fill = unknown
> = IfNotAnyOrNever<
Length,
{
ifNot: _TupleOf<
If<IsNegative<Length>, 0, Length>,
Fill
>;
ifAny: Fill[];
ifNever: [];
}
>;