diff --git a/index.d.ts b/index.d.ts index 82349769c7..4bcfa3dd0a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -371,6 +371,14 @@ export class AxiosError extends Error { status?: number; toJSON: () => object; cause?: Error; + static from( + error: Error | unknown, + code?: string, + config?: AxiosRequestConfig, + request?: any, + response?: AxiosResponse, + customProps?: object, +): AxiosError; static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS"; static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";