diff --git a/types/webpack-dev-server/index.d.ts b/types/webpack-dev-server/index.d.ts index 31d5b42891..c6bab12c3b 100644 --- a/types/webpack-dev-server/index.d.ts +++ b/types/webpack-dev-server/index.d.ts @@ -81,7 +81,7 @@ declare class WebpackDevServer { ); static addDevServerEntrypoints( - webpack: webpack.Compiler | webpack.MultiCompiler, + webpackOptions: webpack.Configuration | webpack.Configuration[], config: WebpackDevServer.Configuration, listeningApp?: WebpackDevServer.ListeningApp ): void; diff --git a/types/webpack-dev-server/webpack-dev-server-tests.ts b/types/webpack-dev-server/webpack-dev-server-tests.ts index eee626ecec..5a23a60ad7 100644 --- a/types/webpack-dev-server/webpack-dev-server-tests.ts +++ b/types/webpack-dev-server/webpack-dev-server-tests.ts @@ -87,13 +87,13 @@ server.listen(8080, "localhost", () => { }); server.close(); -WebpackDevServer.addDevServerEntrypoints(compiler, { +WebpackDevServer.addDevServerEntrypoints(config, { publicPath: "/assets/", https: true }); WebpackDevServer.addDevServerEntrypoints( - compiler, + [config], { publicPath: "/assets/", https: true