From 0ef682d3da6766b73c054c905f47b9bb06f66412 Mon Sep 17 00:00:00 2001 From: Adrian Wieprzkowicz Date: Tue, 21 Dec 2021 19:40:06 +0100 Subject: [PATCH 1/3] Expand isAxiosError types --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 20406719dd..a52c312fb6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -198,7 +198,7 @@ export interface AxiosStatic extends AxiosInstance { isCancel(value: any): boolean; all(values: Array>): Promise; spread(callback: (...args: T[]) => R): (array: T[]) => R; - isAxiosError(payload: any): payload is AxiosError; + isAxiosError(payload: any): payload is AxiosError; } declare const axios: AxiosStatic; From f35d8f5a182a1752c3e354ea22e7b451b8aaa15d Mon Sep 17 00:00:00 2001 From: Adrian Wieprzkowicz Date: Wed, 29 Dec 2021 17:33:03 +0100 Subject: [PATCH 2/3] Fix isAxiosError types Add missing generic type variable --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 7bd3269d06..7d34fe5e0c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -213,7 +213,7 @@ export interface AxiosStatic extends AxiosInstance { isCancel(value: any): boolean; all(values: Array>): Promise; spread(callback: (...args: T[]) => R): (array: T[]) => R; - isAxiosError(payload: any): payload is AxiosError; + AxiosError(payload: any): payload is AxiosError; } declare const axios: AxiosStatic; From eed934b52133084d14e580dd0ae0d3243cbd3cc5 Mon Sep 17 00:00:00 2001 From: Adrian Wieprzkowicz Date: Thu, 10 Feb 2022 23:31:13 +0100 Subject: [PATCH 3/3] Fix typo --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 7d34fe5e0c..3d4a76d53f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -213,7 +213,7 @@ export interface AxiosStatic extends AxiosInstance { isCancel(value: any): boolean; all(values: Array>): Promise; spread(callback: (...args: T[]) => R): (array: T[]) => R; - AxiosError(payload: any): payload is AxiosError; + isAxiosError(payload: any): payload is AxiosError; } declare const axios: AxiosStatic;