mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix(types): add missing types for mergeConfig function (#6590)
* add mergeConfig types * Update index.d.ts --------- Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Vendored
+3
@@ -538,6 +538,8 @@ export function isCancel(value: any): value is Cancel;
|
|||||||
|
|
||||||
export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
|
||||||
|
|
||||||
|
export function mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
|
||||||
|
|
||||||
export interface AxiosStatic extends AxiosInstance {
|
export interface AxiosStatic extends AxiosInstance {
|
||||||
create(config?: CreateAxiosDefaults): AxiosInstance;
|
create(config?: CreateAxiosDefaults): AxiosInstance;
|
||||||
Cancel: CancelStatic;
|
Cancel: CancelStatic;
|
||||||
@@ -555,6 +557,7 @@ export interface AxiosStatic extends AxiosInstance {
|
|||||||
getAdapter: typeof getAdapter;
|
getAdapter: typeof getAdapter;
|
||||||
CanceledError: typeof CanceledError;
|
CanceledError: typeof CanceledError;
|
||||||
AxiosHeaders: typeof AxiosHeaders;
|
AxiosHeaders: typeof AxiosHeaders;
|
||||||
|
mergeConfig: typeof mergeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare const axios: AxiosStatic;
|
declare const axios: AxiosStatic;
|
||||||
|
|||||||
Reference in New Issue
Block a user