diff --git a/types/webpack-hot-middleware/index.d.ts b/types/webpack-hot-middleware/index.d.ts index 725fb65c4f..e7108008ac 100644 --- a/types/webpack-hot-middleware/index.d.ts +++ b/types/webpack-hot-middleware/index.d.ts @@ -1,15 +1,15 @@ // Type definitions for webpack-hot-middleware 2.16 // Project: https://github.com/glenjamin/webpack-hot-middleware#readme -// Definitions by: Benjamin Lim +// Definitions by: Benjamin Lim , Ron Martinez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { NextHandleFunction } from 'connect'; -import { compiler } from 'webpack'; +import * as webpack from 'webpack'; export = WebpackHotMiddleware; declare function WebpackHotMiddleware( - compiler: compiler.Compiler, + compiler: webpack.ICompiler, options?: WebpackHotMiddleware.Options ): NextHandleFunction & WebpackHotMiddleware.EventStream;