nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.19k stars 245 forks source link

isAxiosError is undefined on NuxtAxiosInstance #550

Open BobbieGoede opened 3 years ago

BobbieGoede commented 3 years ago

NuxtAxiosInstance does not have isAxiosError while the interface it extends suggest that it does.

silverbackdan commented 2 years ago

It should do - perhaps you are not importing the type properly? There was an issue I had which is resolved here, fancy taking a look as if it resolves your issue you can close this one? https://github.com/nuxt-community/axios-module/issues/555

ZhuBoao commented 2 years ago

No, seems like it isAxiosError functions still doesn't exist on NuxtAxiosInstance. At least not on latest release 5.13.6.

It's not a huge issue. I can directlyimport axios from "axios" and call axios.isAxiosError(..). Though it would be sweet to add it in NuxtAxiosInstance.

silverbackdan commented 2 years ago

Ah yes, misunderstood the issue and you're right, hopefully maintainers will see your fix :)