mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
25 lines
700 B
TypeScript
25 lines
700 B
TypeScript
// Type definitions for webpack-hot-middleware 2.15
|
|
// Project: https://github.com/glenjamin/webpack-hot-middleware#readme
|
|
// Definitions by: Benjamin Lim <https://github.com/bumbleblym>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import { NextHandleFunction } from 'connect';
|
|
import { compiler } from 'webpack';
|
|
|
|
export = WebpackHotMiddleware;
|
|
|
|
declare function WebpackHotMiddleware(
|
|
compiler: compiler.Compiler,
|
|
options?: WebpackHotMiddleware.Options
|
|
): NextHandleFunction;
|
|
|
|
declare namespace WebpackHotMiddleware {
|
|
interface Options {
|
|
log?: false | Logger;
|
|
path?: string;
|
|
heartbeat?: number;
|
|
}
|
|
|
|
type Logger = (message?: any, ...optionalParams: any[]) => void;
|
|
}
|