import { List } from '../util/List'; import { Inc } from '../number/Inc'; import { TupleHasIndex } from '../array/TupleHasIndex'; /** * Get a union of types from the indices of a tuple-like type. */ export type TupleIndicesToUnion, I extends number = 0, Acc = never> = { 1: TupleIndicesToUnion, 0: Acc }[TupleHasIndex];