mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 23:44:23 +08:00
18 lines
451 B
Plaintext
18 lines
451 B
Plaintext
// @flow
|
|
// Generated using flowgen2
|
|
|
|
const Promise = require('promise');
|
|
const Response = require('http-response-object');
|
|
|
|
declare class ResponsePromise extends Promise<Response<Buffer | string>> {
|
|
getBody(encoding: string): Promise<string>;
|
|
getBody(): Promise<Buffer | string>;
|
|
}
|
|
export {ResponsePromise};
|
|
|
|
declare function toResponsePromise(
|
|
result: Promise<Response<Buffer | string>>,
|
|
): ResponsePromise;
|
|
|
|
export default toResponsePromise;
|