Skip to content

Export CancelToken #271

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

Closed
padinko opened this issue Jul 31, 2019 · 1 comment
Closed

Export CancelToken #271

padinko opened this issue Jul 31, 2019 · 1 comment

Comments

@padinko
Copy link

padinko commented Jul 31, 2019

What problem does this feature solve?

Can @nuxtjs/axios export CancelToken too?
So I gan use only import { CancelToken } from '@nuxtjs/axios'; which I already have in dependencies
instad of import { CancelToken } from 'axios'; which need to be additionally added to dependencies

This feature request is available on Nuxt community (#c265)
@pi0
Copy link
Member

pi0 commented Oct 21, 2019

Hi. I'm sorry but it's not possible to directly import it from the module package. Axios will be automatically installed when you install axios module (@nuxt/axios) but if your IDE is complaining about this, you can always also directly add axios dependency as well. I'm closing this issue as it is more a feature request but #292 can also provide an easier shortcut when you don't need any import :)

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

No branches or pull requests

2 participants