mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
webpack-dev-server: move addDevServerEntrypoints in class and mark it as static
This commit is contained in:
Vendored
+6
-2
@@ -19,8 +19,6 @@ declare namespace WebpackDevServer {
|
||||
address(): { port?: number };
|
||||
}
|
||||
|
||||
function addDevServerEntrypoints(webpack: webpack.Compiler | webpack.MultiCompiler, config: Configuration, listeningApp?: ListeningApp): void;
|
||||
|
||||
interface proxyConfigMap {
|
||||
[url: string]: string | httpProxyMiddleware.Config;
|
||||
}
|
||||
@@ -82,6 +80,12 @@ declare class WebpackDevServer {
|
||||
config: WebpackDevServer.Configuration
|
||||
);
|
||||
|
||||
static addDevServerEntrypoints(
|
||||
webpack: webpack.Compiler | webpack.MultiCompiler,
|
||||
config: WebpackDevServer.Configuration,
|
||||
listeningApp?: WebpackDevServer.ListeningApp
|
||||
): void;
|
||||
|
||||
listen(port: number, hostname: string, callback?: (error?: Error) => void): http.Server;
|
||||
|
||||
listen(port: number, callback?: (error?: Error) => void): http.Server;
|
||||
|
||||
Reference in New Issue
Block a user