xy-server/node_modules/then-request/lib/ResponsePromise.js.flow

18 lines
451 B
Plaintext
Raw Permalink Normal View History

2025-04-23 09:34:08 +08:00
// @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;