UNPKG

423 BTypeScriptView Raw
1/// <reference types="node" />
2import Promise = require('promise');
3import Response = require('http-response-object');
4export declare class ResponsePromise extends Promise<Response<Buffer | string>> {
5 getBody(encoding: string): Promise<string>;
6 getBody(): Promise<Buffer | string>;
7}
8declare function toResponsePromise(result: Promise<Response<Buffer | string>>): ResponsePromise;
9export default toResponsePromise;