mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
refactor: add missing types for static AxiosError.from method (#4956)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+8
@@ -371,6 +371,14 @@ export class AxiosError<T = unknown, D = any> extends Error {
|
|||||||
status?: number;
|
status?: number;
|
||||||
toJSON: () => object;
|
toJSON: () => object;
|
||||||
cause?: Error;
|
cause?: Error;
|
||||||
|
static from<T = unknown, D = any>(
|
||||||
|
error: Error | unknown,
|
||||||
|
code?: string,
|
||||||
|
config?: AxiosRequestConfig<D>,
|
||||||
|
request?: any,
|
||||||
|
response?: AxiosResponse<T, D>,
|
||||||
|
customProps?: object,
|
||||||
|
): AxiosError<T, D>;
|
||||||
static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
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_VALUE = "ERR_BAD_OPTION_VALUE";
|
||||||
static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
||||||
|
|||||||
Reference in New Issue
Block a user