Skip to content

Commit 813dece

Browse files
committed
fix(types): ServerResponse type
The optional `req` is no longer needed in newer versions of NodeJS (v15.7.0+)
1 parent eab0c27 commit 813dece

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/types/http.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ export type IncomingMessage = http.IncomingMessage & {
44
originalUrl?: string;
55
};
66

7-
export type ServerResponse = http.ServerResponse & {
8-
req?: http.IncomingMessage;
9-
};
7+
export type ServerResponse = http.ServerResponse;
108

119
export interface IncomingMessageWithBody<T = any> extends http.IncomingMessage {
1210
body?: T;

0 commit comments

Comments
 (0)