From 8e65a5f6692112e9f9fab5fa17c05afd06299c6f Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 30 Mar 2021 22:19:29 -0500 Subject: [PATCH] fix(extollo/extollo#4): explicitly define return type to fix build error --- src/http/lifecycle/Response.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/lifecycle/Response.ts b/src/http/lifecycle/Response.ts index d22ecd4..ef7ac36 100644 --- a/src/http/lifecycle/Response.ts +++ b/src/http/lifecycle/Response.ts @@ -1,6 +1,7 @@ import {Request} from "./Request"; import {ErrorWithContext, HTTPStatus, BehaviorSubject} from "@extollo/util" import {ServerResponse} from "http" +import {HTTPCookieJar} from "../kernel/HTTPCookieJar"; /** * Error thrown when the server tries to re-send headers after they have been sent once. @@ -78,7 +79,7 @@ export class Response { } /** Get the HTTPCookieJar for the client. */ - public get cookies() { + public get cookies(): HTTPCookieJar { return this.request.cookies }