Skip to content

Commit 0ee1eca

Browse files
committed
ref: Make ExpressRequest not extend http.IncomingMessage anymore
1 parent 21196ac commit 0ee1eca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/node/src/handlers.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ import { flush } from './sdk';
2020

2121
const DEFAULT_SHUTDOWN_TIMEOUT = 2000;
2222

23-
export interface ExpressRequest extends http.IncomingMessage {
24-
[key: string]: any;
23+
export interface ExpressRequest {
2524
baseUrl?: string;
25+
connection?: {
26+
remoteAddress?: string;
27+
};
2628
ip?: string;
29+
method?: string;
2730
originalUrl?: string;
2831
route?: {
2932
path: string;
@@ -33,6 +36,10 @@ export interface ExpressRequest extends http.IncomingMessage {
3336
},
3437
];
3538
};
39+
query?: {
40+
[key: string]: string | string[];
41+
};
42+
url?: string;
3643
user?: {
3744
[key: string]: any;
3845
};

0 commit comments

Comments
 (0)