Skip to content

Commit

Permalink
feat: export mergeConfig function in index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Dec 21, 2022
1 parent 341f735 commit 990934f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ export function isCancel(value: any): value is Cancel;

export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;

export function mergeConfig<D = any>(config1: AxiosRequestConfig<any>, config2?: AxiosRequestConfig<D>): AxiosRequestConfig<D>;

export interface AxiosStatic extends AxiosInstance {
create(config?: CreateAxiosDefaults): AxiosInstance;
Cancel: CancelStatic;
Expand All @@ -507,6 +509,7 @@ export interface AxiosStatic extends AxiosInstance {
isAxiosError: typeof isAxiosError;
toFormData: typeof toFormData;
formToJSON: typeof formToJSON;
mergeConfig: typeof mergeConfig;
CanceledError: typeof CanceledError;
AxiosHeaders: typeof AxiosHeaders;
}
Expand Down

0 comments on commit 990934f

Please sign in to comment.