2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

Fixing type definitions so AxiosInstance can be invoked

This commit is contained in:
Evan Shortiss
2017-12-20 21:45:48 -08:00
parent d7f021b8d4
commit d07e648c30
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -141,6 +141,10 @@ axios.patch<User>('/user', { foo: 'bar' })
const instance1: AxiosInstance = axios.create();
const instance2: AxiosInstance = axios.create(config);
instance1(config)
.then(handleResponse)
.catch(handleError);
instance1.request(config)
.then(handleResponse)
.catch(handleError);