2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Fixing instance.defaults.headers type (#4557)

* Fixing instance.defaults.headers type

* remove console.log()

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Spencer
2022-05-09 12:12:53 -05:00
committed by GitHub
parent 4c898f8665
commit 9f6ba5ee43
2 changed files with 8 additions and 0 deletions
Vendored
+6
View File
@@ -241,6 +241,12 @@ export class Axios {
export interface AxiosInstance extends Axios {
(config: AxiosRequestConfig): AxiosPromise;
(url: string, config?: AxiosRequestConfig): AxiosPromise;
defaults: Omit<AxiosDefaults, 'headers'> & {
headers: HeadersDefaults & {
[key: string]: string | number | boolean | undefined
}
};
}
export interface GenericFormData {