File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ const noop = () => {};
18
18
/** @typedef {import("webpack").Stats } Stats */
19
19
/** @typedef {import("webpack").MultiStats } MultiStats */
20
20
21
- // TODO fix me
22
21
/**
23
22
* @typedef {Object } ExtendedServerResponse
24
- * @property {{ webpack?: { devMiddleware?: Context<any, any > } } } [locals]
23
+ * @property {{ webpack?: { devMiddleware?: Context<IncomingMessage, ServerResponse > } } } [locals]
25
24
*/
26
25
27
26
/** @typedef {import("http").IncomingMessage } IncomingMessage */
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export = wdm;
8
8
/** @typedef {import("webpack").MultiStats } MultiStats */
9
9
/**
10
10
* @typedef {Object } ExtendedServerResponse
11
- * @property {{ webpack?: { devMiddleware?: Context<any, any > } } } [locals]
11
+ * @property {{ webpack?: { devMiddleware?: Context<IncomingMessage, ServerResponse > } } } [locals]
12
12
*/
13
13
/** @typedef {import("http").IncomingMessage } IncomingMessage */
14
14
/** @typedef {import("http").ServerResponse & ExtendedServerResponse } ServerResponse */
@@ -186,7 +186,9 @@ type ExtendedServerResponse = {
186
186
| {
187
187
webpack ?:
188
188
| {
189
- devMiddleware ?: Context < any , any > | undefined ;
189
+ devMiddleware ?:
190
+ | Context < import ( "http" ) . IncomingMessage , ServerResponse >
191
+ | undefined ;
190
192
}
191
193
| undefined ;
192
194
}
You can’t perform that action at this time.
0 commit comments