CombineResults<T extends readonly Result<unknown, unknown>[]>: IsLiteralArray<T> extends 1
    ? Traverse<T>
    : Result<ExtractOkTypes<T>, ExtractErrTypes<T>[number]>

Type Parameters

  • T extends readonly Result<unknown, unknown>[]