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

Type Parameters

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