From 63e559fa609c40a0a460ae5d5a18c3470ffc6c9e Mon Sep 17 00:00:00 2001 From: chenjigeng <178854407@qq.com> Date: Wed, 18 May 2022 13:38:52 +0800 Subject: [PATCH] fix: add isCancel type assert (#4293) Co-authored-by: Jay --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index c643aa7..67fdd68 100644 --- a/index.d.ts +++ b/index.d.ts @@ -292,7 +292,7 @@ export interface AxiosStatic extends AxiosInstance { Axios: typeof Axios; AxiosError: typeof AxiosError; readonly VERSION: string; - isCancel(value: any): boolean; + isCancel(value: any): value is Cancel; all(values: Array>): Promise; spread(callback: (...args: T[]) => R): (array: T[]) => R; isAxiosError(payload: any): payload is AxiosError;