1 | export declare type Milliseconds = number;
|
2 | export declare type Bytes = number;
|
3 | export declare type Path = string;
|
4 | export interface WebpackAsset {
|
5 | name: string;
|
6 | size: Bytes;
|
7 | chunks: number[];
|
8 | chunkNames: string[];
|
9 | emitted: boolean;
|
10 | }
|
11 | export interface WebpackChunk {
|
12 | }
|
13 | export interface WebpackModule {
|
14 | id: number;
|
15 | identifier: Path;
|
16 | name: string;
|
17 | size: Bytes;
|
18 | }
|
19 | export interface CompilationBase {
|
20 | name?: string;
|
21 | errors: any[];
|
22 | hash: string;
|
23 | version: string;
|
24 | warnings: any[];
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 | export interface WebpackMultiCompilation extends CompilationBase {
|
30 | children: WebpackCompilation[];
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 | export interface WebpackCompilation extends CompilationBase {
|
36 | time: Milliseconds;
|
37 | assetsByChunkName: {
|
38 | [chunkName: string]: string;
|
39 | };
|
40 | assets: WebpackAsset[];
|
41 | chunks: WebpackChunk[];
|
42 | modules: WebpackModule[];
|
43 | }
|
44 |
|
45 | export declare type WebpackStats = WebpackMultiCompilation | WebpackCompilation;
|
46 | export declare function isMultiCompilation(stats: WebpackStats): stats is WebpackMultiCompilation;
|