Type Alias ToTuple<R, S, X>
ToTuple<R, S, X>: S["length"] extends 0 ? R : S["length"] extends 1 ? [...R, ...DigitToTuple<X>[S[0]]] : S extends [any, ...(infer T)] ? T extends any[] ? ToTuple<Multi10<[...R, ...DigitToTuple<X>[S[0]]]>, T> : never : never Type Parameters
- R extends any[]
- S extends number[]
- X = any