mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #11951 from Sykout/patch-1
Add transform2xxOnly option and update Version No.
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user