Type alias UnionToTuple<T, Tuple>

UnionToTuple<T, Tuple>: [T] extends [never]
    ? Tuple
    : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>

Type Parameters

  • T
  • Tuple extends unknown[] = []

Generated using TypeDoc