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

Using this lib in typescript : how to include axios and others like AxiosRequestConfig ? #433

Closed
StefH opened this issue Sep 1, 2016 · 3 comments

Comments

@StefH
Copy link

StefH commented Sep 1, 2016

Currently I'm using this:

import axios from 'axios';
import { AxiosRequestConfig, AxiosPromise } from 'axios';

Which seems a bit strange, is there a better way ?

@nickuraltsev
Copy link
Member

You can use this instead:

import axios, { AxiosRequestConfig, AxiosPromise } from 'axios';

@StefH
Copy link
Author

StefH commented Sep 1, 2016

Thanks for the answer.

@StefH StefH closed this as completed Sep 1, 2016
yanivefraim added a commit to yanivefraim/axios that referenced this issue Nov 8, 2016
@ChuckJonas
Copy link

this took me forever to figure out...

@axios axios locked and limited conversation to collaborators May 21, 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

No branches or pull requests

3 participants