提交 eca2ac88 编写于 作者: M mzabriskie

Merge branch 'master' of github.com:mzabriskie/axios

......@@ -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 {
......
......@@ -9,6 +9,7 @@ var axios = module.exports = function (config) {
config = utils.merge({
method: 'get',
headers: {},
timeout: defaults.timeout,
transformRequest: defaults.transformRequest,
transformResponse: defaults.transformResponse
}, config);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册