diff --git a/rest/rest-tests.ts b/rest/rest-tests.ts index 00ce6b3db..813a06785 100644 --- a/rest/rest-tests.ts +++ b/rest/rest-tests.ts @@ -118,25 +118,25 @@ var promiseOrResponse = interceptor({ }); client = rest - .wrap(defaultRequest) - .wrap(hateoas) - .wrap(location) - .wrap(mime) - .wrap(pathPrefix) - .wrap(basicAuth) - .wrap(oAuth) - .wrap(csrf) - .wrap(errorCode) - .wrap(retry) - .wrap(template, { template: 'auth={token}', params: { token: 'hunter2' } }) - .wrap(timeout) - .wrap(jsonp) - .wrap(xdomain) - .wrap(xhr) - .wrap(noop) - .wrap(fail) - .wrap(knownConfig, { prop: 'value' }) - .wrap(transformedConfig, { prop: 'value' }); + .wrap(defaultRequest) + .wrap(hateoas) + .wrap(location) + .wrap(mime) + .wrap(pathPrefix) + .wrap(basicAuth) + .wrap(oAuth) + .wrap(csrf) + .wrap(errorCode) + .wrap(retry) + .wrap(template, { template: 'auth={token}', params: { token: 'hunter2' } }) + .wrap(timeout) + .wrap(jsonp) + .wrap(xdomain) + .wrap(xhr) + .wrap(noop) + .wrap(fail) + .wrap(knownConfig, { prop: 'value' }) + .wrap(transformedConfig, { prop: 'value' }); import xhrClient = require('rest/client/xhr'); import nodeClient = require('rest/client/node'); diff --git a/rest/rest.d.ts b/rest/rest.d.ts index 49428d534..e000e1e93 100644 --- a/rest/rest.d.ts +++ b/rest/rest.d.ts @@ -263,7 +263,9 @@ declare module "rest/interceptor/template" { module template { interface Config { template?: string; - params?: {}; + params?: { + [name: string]: any; + }; } }