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

Multiple axios instances not support? #157

Open
filbert-lee opened this issue Mar 21, 2023 · 3 comments
Open

Multiple axios instances not support? #157

filbert-lee opened this issue Mar 21, 2023 · 3 comments

Comments

@filbert-lee
Copy link

vue: 3.2.47
vue-axios: 3.5.2
axios: 1.3.4

image
image

I think you should edit the types file

image

@imcvampire
Copy link
Owner

I believe that it isn't supported by type, not by the plugin!

@NoeLiYa
Copy link

NoeLiYa commented Jun 2, 2024

I believe that it isn't supported by type, not by the plugin!

Double-wrapped axios returns the type of AxiosInstance, and AxiosStatic inherits from AxiosInstance, so can't your plugin support both types? Or is it okay if I force AxiosInstance to switch to AxiosStatic?
image
image

@imcvampire
Copy link
Owner

@NoeLiYa I'm not sure. Can you send a PR for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants