by indexerror · 8y ago · 0 comments
interface IResponse {
foo: string
}
async function doSomething() {
const reponse: AxiosResponse<IResponse> = await Api.call()
...
// or you can use AxiosPromise<IResponse> without the await
}No comments yet.