diff --git a/index.d.ts b/index.d.ts index a33eb71743..c671dd045e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -213,6 +213,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";