Add transform2xxOnly option and update Version No.

Base on the release notes from v4 to v4.1, I believe the new option transform2xxOnly and the cancel() action is the only new changes, with cancel() already implemented.
This commit is contained in:
Sykout
2016-10-13 18:42:49 +11:00
committed by GitHub
parent e764d154eb
commit d6562d42f2
+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;
}