Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00de614

Browse filesBrowse files
fix(types): add missing types for mergeConfig function (#6590)
* add mergeConfig types * Update index.d.ts --------- Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 7638952 commit 00de614
Copy full SHA for 00de614

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎index.d.ts

Copy file name to clipboardExpand all lines: index.d.ts
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ export function isCancel(value: any): value is Cancel;
538538

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

541+
export function mergeConfig<D = any>(config1: AxiosRequestConfig<D>, config2: AxiosRequestConfig<D>): AxiosRequestConfig<D>;
542+
541543
export interface AxiosStatic extends AxiosInstance {
542544
create(config?: CreateAxiosDefaults): AxiosInstance;
543545
Cancel: CancelStatic;
@@ -555,6 +557,7 @@ export interface AxiosStatic extends AxiosInstance {
555557
getAdapter: typeof getAdapter;
556558
CanceledError: typeof CanceledError;
557559
AxiosHeaders: typeof AxiosHeaders;
560+
mergeConfig: typeof mergeConfig;
558561
}
559562

560563
declare const axios: AxiosStatic;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.