[webpack] fix ToJsonOutput.chunks (should be an array) (#35219)

* fix incorrectly typed property

* fix lint issues
This commit is contained in:
Derek Sifford
2019-05-06 05:29:25 +01:00
committed by John Reilly
parent ee9bf2dc97
commit 23bd4f381e
+2 -2
View File
@@ -1307,7 +1307,7 @@ declare namespace webpack {
assetsByChunkName?: Record<string, Record<string, string[]>>;
builtAt?: number;
children?: ToJsonOptions[] & { name?: string };
chunks?: {
chunks?: Array<{
children: number[];
childrenByOrder: Record<string, number[]>;
entry: boolean;
@@ -1333,7 +1333,7 @@ declare namespace webpack {
rendered: boolean;
size: number;
siblings: number[];
};
}>;
entrypoints?: Record<string, ChunkGroup>;
errors: string[];
env?: Record<string, any>;