diff --git a/index.d.ts b/index.d.ts index 59922bc..8b79a15 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,11 @@ import { IncomingMessage, ServerResponse } from 'http' export default class Response { + constructor(req: IncomingMessage, res: ServerResponse) + status: number - constructor(req: IncomingMessage, res: ServerResponse) + get response(): ServerResponse get ended(): boolean diff --git a/index.js b/index.js index 9232a59..cc6cb04 100644 --- a/index.js +++ b/index.js @@ -24,6 +24,10 @@ export default class Response { this.#ended = !!res.ended } + get response() { + return this.#res + } + get ended() { return this.#ended }