Fix return value of transform in request-promise.d.ts

The return value of `transform` function is not necessarily `number`.
This commit is contained in:
Aya Morisawa
2015-08-20 23:52:15 +09:00
parent 38fb591c6e
commit 673be8a169
+3 -1
View File
@@ -3,6 +3,8 @@
// Definitions by: Christopher Glantschnig <https://github.com/cglantschnig/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// Change [0]: 2015/08/20 - Aya Morisawa <https://github.com/AyaMorisawa>
/// <reference path="../node/node.d.ts" />
/// <reference path="../form-data/form-data.d.ts" />
/// <reference path="../request/request.d.ts" />
@@ -22,7 +24,7 @@ declare module 'request-promise' {
module RequestPromiseAPI {
export interface Options extends request.Options {
simple?: boolean;
transform?: (body: any, response: http.IncomingMessage) => number;
transform?: (body: any, response: http.IncomingMessage) => any;
resolveWithFullResponse?: boolean;
}
}