Skip to content

Commit 9e62056

Browse files
fix(types): removed duplicated code
Co-authored-by: Jay <[email protected]>
1 parent 6365751 commit 9e62056

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

index.d.cts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,7 @@ declare namespace axios {
244244
interface AxiosProxyConfig {
245245
host: string;
246246
port: number;
247-
auth?: {
248-
username: string;
249-
password: string;
250-
};
247+
auth?: AxiosBasicCredentials;
251248
protocol?: string;
252249
}
253250

index.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ export interface AxiosBasicCredentials {
119119
export interface AxiosProxyConfig {
120120
host: string;
121121
port: number;
122-
auth?: {
123-
username: string;
124-
password: string;
125-
};
122+
auth?: AxiosBasicCredentials;
126123
protocol?: string;
127124
}
128125

0 commit comments

Comments
 (0)