From a6aea3ab811f6c41caa87f7d7d22ebe79a0ba52a Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 14 Feb 2018 09:23:21 +0100 Subject: [PATCH] webpack dev server: `addDevServerEntrypoints` change options types --- types/webpack-dev-server/index.d.ts | 2 +- types/webpack-dev-server/webpack-dev-server-tests.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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