-
Notifications
You must be signed in to change notification settings - Fork 49
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
axios 1.x has changed axios.defaults.adapter #103
Comments
Maybe we should release 4.x version for this breaking change |
It would be great ! |
Is there a temporal workaround for this ? |
This works for me import axios from 'axios';
import adapters from 'axios/lib/adapters/adapters.js';
const getAdapter = adapters.getAdapter;
/**
* @return {import('axios').AxiosAdapter}
*/
export function getDefaultAdapter() {
return getAdapter(axios.defaults.adapter);
} |
As it stands, there doesn't seem to be a valid typescript safe way to do this without some hand waving. It doesn't appear the |
|
Any progress on the new project? |
can't use getDefaultAdapter with axios 1.x
axios/axios@d032edd
The text was updated successfully, but these errors were encountered: