Skip to content

Commit aa099be

Browse files
authored
🤖 Merge PR DefinitelyTyped#73338 [webpack-hot-middleware] statsOptions typing by @kholstinin
Co-authored-by: d.kholstinin <[email protected]>
1 parent eeeec7c commit aa099be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎types/webpack-hot-middleware/index.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ declare namespace WebpackHotMiddleware {
3131
log?: false | Logger | undefined;
3232
path?: string | undefined;
3333
heartbeat?: number | undefined;
34+
statsOptions?: webpack.StatsOptions;
3435
}
3536

3637
type Logger = (message?: any, ...optionalParams: any[]) => void;

‎types/webpack-hot-middleware/webpack-hot-middleware-tests.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const compiler = webpack({})!;
77
let webpackHotMiddlewareInstance = webpackHotMiddleware(compiler);
88

99
webpackHotMiddlewareInstance = webpackHotMiddleware(compiler, {
10+
statsOptions: { cached: false },
1011
log: console.log.bind(console),
1112
path: "/__what",
1213
heartbeat: 2000,

0 commit comments

Comments
 (0)