未验证 提交 db44a8f3 编写于 作者: N Nick Uraltsev 提交者: GitHub

Merge pull request #1254 from evanshortiss/ts-instance-fix

Fixing type definitions so AxiosInstance can be invoked
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册