未验证 提交 f9373e96 编写于 作者: A Andrew Scott 提交者: GitHub

Added tests for additional type parameters

上级 fbb29e07
......@@ -120,6 +120,14 @@ axios.get<User>('/user', { params: { id: 12345 } })
.then(handleUserResponse)
.catch(handleError);
axios.head<User>('/user')
.then(handleResponse)
.catch(handleError);
axios.delete<User>('/user')
.then(handleResponse)
.catch(handleError);
axios.post<User>('/user', { foo: 'bar' })
.then(handleUserResponse)
.catch(handleError);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册