提交 39c75a47 编写于 作者: M Matt Zabriskie

Merge pull request #105 from thomasguillory/fix/ts-definition

FIX typescript definition to correctly type promise callbacks
......@@ -26,8 +26,8 @@ declare module axios {
}
interface Promise {
then(response: axios.Response): axios.Promise;
catch(response: axios.Response): axios.Promise;
then(onFulfilled:(response: axios.Response) => void): axios.Promise;
catch(onRejected:(response: axios.Response) => void): axios.Promise;
}
interface RequestOptions {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册