ExtractErrTypes<T extends readonly Result<unknown, unknown>[]>: {
    [idx in keyof T]: T[idx] extends Result<unknown, infer E>
        ? E
        : never
}

Type Parameters

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