1 | import "karma";
|
2 | import * as Webpack from "webpack";
|
3 | import { Logger, Reporter } from "webpack-dev-middleware";
|
4 |
|
5 | declare module "karma" {
|
6 | type Logger = (message?: any, ...optionalParams: any[]) => void;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | interface KarmaWebpackMiddlewareOptions /** extends webpackDevMiddleware.Options */ {
|
12 | noInfo?: boolean | undefined;
|
13 | quiet?: boolean | undefined;
|
14 | lazy?: boolean | undefined;
|
15 | watchOptions?: Webpack.Options.WatchOptions | undefined;
|
16 | publicPath?: string | undefined;
|
17 | index?: string | undefined;
|
18 | headers?: {
|
19 | [name: string]: string;
|
20 | } | undefined;
|
21 | stats?: Webpack.Options.Stats | undefined;
|
22 | reporter?: Reporter | null | undefined;
|
23 | serverSideRender?: boolean | undefined;
|
24 |
|
25 | log?: Logger | undefined;
|
26 | warn?: Logger | undefined;
|
27 | error?: Logger | undefined;
|
28 | filename?: string | undefined;
|
29 | }
|
30 |
|
31 | interface ConfigOptions {
|
32 | webpack: Webpack.Configuration;
|
33 | webpackMiddleware: KarmaWebpackMiddlewareOptions;
|
34 | }
|
35 | }
|