From da0586399bd080317bbd5061d46eb279450ef201 Mon Sep 17 00:00:00 2001 From: kukhariev Date: Tue, 17 Dec 2024 21:57:55 +0300 Subject: [PATCH] fix(types): ServerResponse type The optional `req` is no longer needed in newer versions of NodeJS (v15.7.0+) --- packages/core/src/types/http.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/src/types/http.ts b/packages/core/src/types/http.ts index d3b01a97..5b50903d 100644 --- a/packages/core/src/types/http.ts +++ b/packages/core/src/types/http.ts @@ -4,9 +4,7 @@ export type IncomingMessage = http.IncomingMessage & { originalUrl?: string; }; -export type ServerResponse = http.ServerResponse & { - req?: http.IncomingMessage; -}; +export type ServerResponse = http.ServerResponse; export interface IncomingMessageWithBody extends http.IncomingMessage { body?: T;