diff --git a/index.d.ts b/index.d.ts index c2ed1956..aa27f335 100644 --- a/index.d.ts +++ b/index.d.ts @@ -443,6 +443,7 @@ export class AxiosError extends Error { } export class CanceledError extends AxiosError { + readonly name: "CanceledError"; } export type AxiosPromise = Promise>; @@ -543,7 +544,7 @@ export function isAxiosError(payload: any): payload is AxiosEr export function spread(callback: (...args: T[]) => R): (array: T[]) => R; -export function isCancel(value: any): value is Cancel; +export function isCancel(value: any): value is CanceledError; export function all(values: Array>): Promise;