1 | declare module 'webpack' {
|
2 |
|
3 | declare class UglifyJsPlugin {
|
4 |
|
5 | constructor(params: mixed): UglifyJsPlugin;
|
6 | }
|
7 |
|
8 | declare var optimize: {
|
9 | UglifyJsPlugin: typeof UglifyJsPlugin;
|
10 | };
|
11 |
|
12 | declare type Stats = {
|
13 | compilation: Compilation;
|
14 | [key: string]: mixed;
|
15 | };
|
16 |
|
17 | declare type Compilation = {
|
18 | errors: Array<Error>;
|
19 | warnings: Array<Error>;
|
20 | [key: string]: mixed;
|
21 | };
|
22 |
|
23 | declare type Compiler = {
|
24 | plugin(name: string, callback: Function): void;
|
25 | [key: string]: mixed;
|
26 | };
|
27 |
|
28 | declare type Asset
|
29 | = {source(): string}
|
30 | | {_source: {source(): string}}
|
31 |
|
32 | declare type AssetCollection = {
|
33 | [key: string]: Asset;
|
34 | };
|
35 | }
|
36 |
|