-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken AxiosHeaders
typings
#5415
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
AxiosHeaders
types makes it so trying to call methods on the instance raises atypescript
compilation error.AxiosRequestConfig.headers
can be eitherRawAxiosRequestHeaders
orAxiosHeaders
.RawAxiosRequestHeaders
, being an alias ofRecord<string, AxiosHeaderValue>
causes methods to not be callable.To Reproduce
Invoke any method on
AxiosRequestConfig.headers
.Code snippet
Expected behavior
Should be able to call any method declared in
AxiosHeaders
.Environment
axios
:1.2.2
node
:18.12.1
typescript
:4.9.4
13.1
The text was updated successfully, but these errors were encountered: