#### Summary

It would be nice to export a typeguard from Axios' index.d.ts.
This way, consumers trying to do error handling can check in a type-safe way if the error is an AxiosError, or some other kind of error.

It's easy enough to do this as a consumer, but it would be nicer if this was included in the actual Axios library.

test/typescript/axios.ts
.catch(handleError);
axios.patch('/user', { foo: 'bar' })
  .then(handleResponse)
  .catch(handleError);
interface User {
  id: number;
  name: string;
}
const handleUserResponse = (response: AxiosResponse<User>) => {
	console.log(response.data.id);
	console.log(response.data.name);
	console.log(response.status);
	console.log(response.statusText);
	console.log(response.headers);
	console.log(response.config);
};
axios.get<User>('/user?id=12345')
	.then(handleUserResponse)
	.catch(handleError);
axios.get<User>('/user', { params: { id: 12345 } })
	.then(handleUserResponse)
	.catch(handleError);
axios.head<User>('/user')
	.then(handleUserResponse)
    .catch(handleError);
    
axios.options<User>('/user')
	.then(handleUserResponse)
	.catch(handleError);
axios.delete<User>('/user')