mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-23 17:40:25 +00:00
Merge pull request #26709 from ZSkycat/patch-webpack-serve
[webpack-serve] fix WebpackServe.WebpackServeOpen, it is optional
This commit is contained in:
Vendored
+4
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user