Traverse<T, Depth extends number>: Combine<T, Depth> extends [infer Oks, infer Errs]
    ? Result<EmptyArrayToNever<Oks, 1>, MembersToUnion<Errs>>
    : never

Type Parameters

  • T
  • Depth extends number = 5