Describe the bug
I need to create a proper type for axios headers object
I have followed #5476 this one - so I can't use AxiosRequestHeaders.
I believe I need to use RawAxiosRequestHeaders. But in case i need to use this type as a generic argument, for example, with React.createContext - it cause compiler error
import { RawAxiosRequestHeaders } from 'axios';
export const RequestHeadersContext = createContext<RawAxiosRequestHeaders | undefined>(undefined);
Exported variable 'RequestHeadersContext' has or is using name 'RawAxiosHeaders' from external module "...node_modules/axios/index" but cannot be named.
I guess it's because interface RawAxiosHeaders is declared locally.
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
Describe the bug
I need to create a proper type for axios headers object
I have followed #5476 this one - so I can't use AxiosRequestHeaders.
I believe I need to use RawAxiosRequestHeaders. But in case i need to use this type as a generic argument, for example, with
React.createContext- it cause compiler errorI guess it's because interface
RawAxiosHeadersis declared locally.To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response