You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: