From 7ebce9f35f4548979a5130aaf9242c2c06e39679 Mon Sep 17 00:00:00 2001
From: Philipp Loose
Date: Tue, 13 Sep 2022 12:41:26 +0200
Subject: [PATCH] refactor: add missing types for static from method of
AxiosError
---
index.d.ts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/index.d.ts b/index.d.ts
index bbf8390fb6..0c783c4215 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";