Merge pull request #26709 from ZSkycat/patch-webpack-serve

[webpack-serve] fix WebpackServe.WebpackServeOpen, it is optional
This commit is contained in:
Nathan Shively-Sanders
2018-06-21 14:38:06 -07:00
committed by GitHub
+4 -5
View File
@@ -2,6 +2,7 @@
// Project: https://github.com/webpack-contrib/webpack-serve
// Definitions by: Ryan Clark <https://github.com/rynclark>
// Jokcy <https://github.com/Jokcy>
// ZSkycat <https://github.com/ZSkycat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -21,16 +22,14 @@ declare module 'webpack' {
}
}
declare function WebpackServe(
options: WebpackServe.Options
): Promise<WebpackServe.Instance>;
declare function WebpackServe(options: WebpackServe.Options): Promise<WebpackServe.Instance>;
declare namespace WebpackServe {
interface WebpackServeOpen {
/** Name of the browser to open */
app: string;
app?: string;
/** Path on the server to open */
path: string;
path?: string;
}
interface WebpackServeMiddleware {