Type alias CollectErrorValue<R>

CollectErrorValue<R>: R[number] extends Err<infer E>
    ? E
    : R[number] extends Ok<unknown>
        ? never
        : R[number] extends Result<infer E, unknown>
            ? E
            : never

An error return type of : Result.collect.

Type Parameters

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

Generated using TypeDoc