Skip to content

Commit

Permalink
fix(types): add missing types for mergeConfig function (axios#6590)
Browse files Browse the repository at this point in the history
* add mergeConfig types

* Update index.d.ts

---------

Co-authored-by: Jay <[email protected]>
  • Loading branch information
Baoyx007 and jasonsaayman authored Sep 26, 2024
1 parent 7638952 commit 00de614
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 @@ -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 mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;

export interface AxiosStatic extends AxiosInstance {
create(config?: CreateAxiosDefaults): AxiosInstance;
Cancel: CancelStatic;
Expand All @@ -555,6 +557,7 @@ export interface AxiosStatic extends AxiosInstance {
getAdapter: typeof getAdapter;
CanceledError: typeof CanceledError;
AxiosHeaders: typeof AxiosHeaders;
mergeConfig: typeof mergeConfig;
}

declare const axios: AxiosStatic;
Expand Down

0 comments on commit 00de614

Please sign in to comment.