Skip to content

Commit

Permalink
Merge pull request #1254 from evanshortiss/ts-instance-fix
Browse files Browse the repository at this point in the history
Fixing type definitions so AxiosInstance can be invoked
  • Loading branch information
nickuraltsev committed Jan 6, 2018
2 parents 84a00b2 + d07e648 commit db44a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/typescript/axios.ts
Expand Up @@ -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);
Expand Down

0 comments on commit db44a8f

Please sign in to comment.