-
Notifications
You must be signed in to change notification settings - Fork 50
/
index.d.ts
19 lines (15 loc) · 641 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { RequestHandler } from 'express';
// tslint:disable-next-line no-implicit-dependencies
import { MultiCompiler, Stats } from 'webpack';
type Options<T = Record<string, any>> = Partial<{
/** The name of the server entry point, defaults to 'main'. */
chunkName: string;
/** object Mixed in with clientStats & serverStats and passed to the serverRenderer. */
serverRendererOptions: T;
createHandler(error: boolean, serverRenderer: RequestHandler): RequestHandler;
}>;
declare function webpackHotServerMiddleware<T>(
compiler: MultiCompiler,
options?: Options<T>,
): RequestHandler;
export = webpackHotServerMiddleware;