Combine<T, Depth extends number>: Transpose<CollectResults<T>, [], Depth> extends [infer L, infer R]
    ? [UnknownMembersToNever<L>, UnknownMembersToNever<R>]
    : Transpose<CollectResults<T>, [], Depth> extends []
        ? [[], []]
        : never

Type Parameters

  • T
  • Depth extends number = 5