Merge pull request #11951 from Sykout/patch-1

Add transform2xxOnly option and update Version No.
This commit is contained in:
Arthur Ozga
2016-10-13 15:10:01 -07:00
committed by GitHub
+2 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for request-promise v3.0.0
// Type definitions for request-promise v4.1.0
// Project: https://github.com/request/request-promise
// Definitions by: Christopher Glantschnig <https://github.com/cglantschnig/>, Joe Skeen <http://github.com/joeskeen>, Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -29,6 +29,7 @@ declare module 'request-promise' {
interface RequestPromiseOptions extends request.CoreOptions {
simple?: boolean;
transform?: (body: any, response: http.IncomingMessage, resolveWithFullResponse?: boolean) => any;
transform2xxOnly?: boolean;
resolveWithFullResponse?: boolean;
}