File tree Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 27
27
},
28
28
"devDependencies" : {
29
29
"@types/cookie" : " 0.3.2" ,
30
- "@types/express" : " ^4.17.2 " ,
30
+ "@types/express" : " ^4.17.14 " ,
31
31
"@types/lru-cache" : " ^5.1.0" ,
32
32
"@types/node" : " ~10.17.0" ,
33
33
"express" : " ^4.17.1" ,
Original file line number Diff line number Diff line change 35
35
"devDependencies" : {
36
36
"@remix-run/node" : " ^1.4.3" ,
37
37
"@remix-run/react" : " ^1.4.3" ,
38
+ "@types/express" : " ^4.17.14" ,
38
39
"portfinder" : " ^1.0.28"
39
40
},
40
41
"peerDependencies" : {
Original file line number Diff line number Diff line change 3
3
// Types vendored from @remix -run/[email protected] :
4
4
// https://github.com/remix-run/remix/blob/f3691d51027b93caa3fd2cdfe146d7b62a6eb8f2/packages/remix-server-runtime/server.ts
5
5
import type * as Express from 'express' ;
6
+ import * as http from 'http' ;
6
7
import type { ComponentType } from 'react' ;
7
8
8
9
export type AppLoadContext = any ;
@@ -14,8 +15,11 @@ export type Params<Key extends string = string> = {
14
15
readonly [ key in Key ] : string | undefined ;
15
16
} ;
16
17
17
- export type ExpressRequest = Express . Request ;
18
- export type ExpressResponse = Express . Response ;
18
+ // In theory, the `Request` and `Response` types from express are extensions of the `http` types but in practice... not
19
+ // so much. See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/40138, which is closed but apparently not
20
+ // actually solved.
21
+ export type ExpressRequest = Express . Request & http . IncomingMessage ;
22
+ export type ExpressResponse = Express . Response & http . ServerResponse ;
19
23
export type ExpressNextFunction = Express . NextFunction ;
20
24
21
25
export interface Route {
Original file line number Diff line number Diff line change 21
21
"@sentry/types" : " 7.13.0" ,
22
22
"@sentry/utils" : " 7.13.0" ,
23
23
"@types/aws-lambda" : " ^8.10.62" ,
24
- "@types/express" : " ^4.17.2 " ,
24
+ "@types/express" : " ^4.17.14 " ,
25
25
"tslib" : " ^1.9.3"
26
26
},
27
27
"devDependencies" : {
Original file line number Diff line number Diff line change 23
23
},
24
24
"devDependencies" : {
25
25
"@sentry/browser" : " 7.13.0" ,
26
- "@types/express" : " ^4.17.1 "
26
+ "@types/express" : " ^4.17.14 "
27
27
},
28
28
"scripts" : {
29
29
"build" : " run-p build:rollup build:types build:bundle && yarn build:extras #necessary for integration tests" ,
Original file line number Diff line number Diff line change 5112
5112
"@types/range-parser" "*"
5113
5113
5114
5114
"@types/express-serve-static-core@^4.17.18":
5115
- version "4.17.19 "
5116
- resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.19 .tgz#00acfc1632e729acac4f1530e9e16f6dd1508a1d "
5117
- integrity sha512-DJOSHzX7pCiSElWaGR8kCprwibCB/3yW6vcT8VG3P0SJjnv19gnWG/AZMfM60Xj/YJIp/YCaDHyvzsFVeniARA ==
5115
+ version "4.17.31 "
5116
+ resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.31 .tgz#a1139efeab4e7323834bb0226e62ac019f474b2f "
5117
+ integrity sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q ==
5118
5118
dependencies:
5119
5119
"@types/node" "*"
5120
5120
"@types/qs" "*"
5130
5130
"@types/qs" "*"
5131
5131
"@types/serve-static" "*"
5132
5132
5133
- "@types/express@^4.17.1 ", "@types/express@^4.17.2":
5134
- version "4.17.11 "
5135
- resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.11 .tgz#debe3caa6f8e5fcda96b47bd54e2f40c4ee59545 "
5136
- integrity sha512-no+R6rW60JEc59977wIxreQVsIEOAYwgCqldrA/vkpCnbD7MqTefO97lmoBe4WE0F156bC4uLSP1XHDOySnChg ==
5133
+ "@types/express@^4.17.14 ", "@types/express@^4.17.2":
5134
+ version "4.17.14 "
5135
+ resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.14 .tgz#143ea0557249bc1b3b54f15db4c81c3d4eb3569c "
5136
+ integrity sha512-TEbt+vaPFQ+xpxFLFssxUDXj5cWCxZJjIcB7Yg0k0GMHGtgtQgpvx/MUQUeAkNbA9AAGrwkAsoeItdTgS7FMyg ==
5137
5137
dependencies:
5138
5138
"@types/body-parser" "*"
5139
5139
"@types/express-serve-static-core" "^4.17.18"
You can’t perform that action at this time.
0 commit comments