forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest-promise.d.ts
29 lines (24 loc) · 1.06 KB
/
request-promise.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Type definitions for request-promise v0.4.2
// Project: https://www.npmjs.com/package/request-promise
// Definitions by: Christopher Glantschnig <https://github.com/cglantschnig/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference path="../form-data/form-data.d.ts" />
/// <reference path="../request/request.d.ts" />
/// <reference path="../bluebird/bluebird.d.ts" />
declare module 'request-promise' {
import request = require('request');
import stream = require('stream');
import http = require('http');
import FormData = require('form-data');
export = RequestPromiseAPI;
function RequestPromiseAPI(options: RequestPromiseAPI.Options): Promise<any>;
function RequestPromiseAPI(uri: string): Promise<request.Request>;
module RequestPromiseAPI {
export interface Options extends request.Options {
simple?: boolean;
transform?: (body: any, response: http.IncomingMessage) => number;
resolveWithFullResponse?: boolean;
}
}
}