Skip to content
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

Add toJSON property to AxiosError type #2427

Merged
merged 2 commits into from Sep 26, 2019
Merged

Conversation

trodrigues
Copy link
Contributor

I noticed the error object has a toJSON method but when I tried to use it in my typescript code it complained it didn't exist, even though I was using the AxiosError type.

trodrigues and others added 2 commits September 24, 2019 18:04
I noticed the error object has a `toJSON` method but when I tried to use it in my typescript code it complained it didn't exist, even though I was using the `AxiosError` type.
@felipewmartins felipewmartins merged commit 006b604 into axios:master Sep 26, 2019
@felipewmartins
Copy link
Collaborator

Awesome @trodrigues! Thanks

genie-youn pushed a commit to genie-youn/axios that referenced this pull request Sep 27, 2019
I noticed the error object has a `toJSON` method but when I tried to use it in my typescript code it complained it didn't exist, even though I was using the `AxiosError` type.
This was referenced Jan 7, 2020
@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants