mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #19608 from bahlo/fix-webpack-hot-middleware
webpack-hot-middleware: Add missing `publish` method
This commit is contained in:
+6
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for webpack-hot-middleware 2.15
|
||||
// Type definitions for webpack-hot-middleware 2.16
|
||||
// Project: https://github.com/glenjamin/webpack-hot-middleware#readme
|
||||
// Definitions by: Benjamin Lim <https://github.com/bumbleblym>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -11,7 +11,7 @@ export = WebpackHotMiddleware;
|
||||
declare function WebpackHotMiddleware(
|
||||
compiler: compiler.Compiler,
|
||||
options?: WebpackHotMiddleware.Options
|
||||
): NextHandleFunction;
|
||||
): NextHandleFunction & WebpackHotMiddleware.EventStream;
|
||||
|
||||
declare namespace WebpackHotMiddleware {
|
||||
interface Options {
|
||||
@@ -21,4 +21,8 @@ declare namespace WebpackHotMiddleware {
|
||||
}
|
||||
|
||||
type Logger = (message?: any, ...optionalParams: any[]) => void;
|
||||
|
||||
interface EventStream {
|
||||
publish(payload: any): void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user