Add config types for builtin interceptors

This commit is contained in:
Wim Looman
2015-01-19 17:14:13 +13:00
parent 1685b0160b
commit ae32a37d40
2 changed files with 130 additions and 21 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ client({ path: '/data.json' }).then(function(response) {
console.log('response: ', response);
});
client = rest.wrap(mime, { mime: 'application/json' }).wrap(errorCode, { code: 500 });
client = rest.wrap<mime.Config>(mime, { mime: 'application/json' }).wrap(errorCode, { code: 500 });
client({ path: '/data.json' }).then(
function(response) {
console.log('response: ', response);