Skip to content

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
Contributor

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.

2 participants