Skip to content

Commit

Permalink
fix(types): ServerResponse type
Browse files Browse the repository at this point in the history
The optional `req`  is no longer needed in newer versions of NodeJS (v15.7.0+)
  • Loading branch information
kukhariev committed Dec 17, 2024
1 parent eab0c27 commit da05863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/types/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T = any> extends http.IncomingMessage {
body?: T;
Expand Down

0 comments on commit da05863

Please sign in to comment.