We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee51e68 commit e6f9026Copy full SHA for e6f9026
index.d.ts
@@ -1,5 +1,15 @@
1
-// TypeScript Version: 3.0
2
-export type AxiosRequestHeaders = Record<string, string | string[] | number | boolean>;
+// TypeScript Version: 4.1
+type AxiosHeaders = Record<string, string | string[] | number | boolean>;
3
+
4
+type MethodsHeaders = {
5
+ [Key in Method as Lowercase<Key>]: AxiosHeaders;
6
+};
7
8
+interface CommonHeaders {
9
+ common: AxiosHeaders;
10
+}
11
12
+export type AxiosRequestHeaders = Partial<AxiosHeaders & MethodsHeaders & CommonHeaders>;
13
14
export type AxiosResponseHeaders = Record<string, string> & {
15
"set-cookie"?: string[]
0 commit comments