Installation
npm install --save @types/responselike
Summary
This package contains type definitions for responselike (https://github.com/lukechilds/responselike#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/responselike.
import { IncomingMessage } from "http";
import { Stream } from "stream";
export = ResponseLike;
declare class ResponseLike extends Stream.Readable {
statusCode: number;
headers: { [header: string]: string | string[] | undefined };
body: Buffer;
url: string;
constructor(
statusCode: number,
headers: { [header: string]: string | string[] | undefined },
body: Buffer,
url: string,
);
}
Additional Details
- Last updated: Wed, 27 Sep 2023 07:12:04 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by BendingBender.