Currently I'm using this:
import axios from 'axios';
import { AxiosRequestConfig, AxiosPromise } from 'axios';
Which seems a bit strange, is there a better way ?
You can use this instead:
import axios, { AxiosRequestConfig, AxiosPromise } from 'axios';
Thanks for the answer.
this took me forever to figure out...
Most helpful comment
You can use this instead: