mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Merge pull request #1254 from evanshortiss/ts-instance-fix
Fixing type definitions so AxiosInstance can be invoked
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user