mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Update type for webpack's Stats.ToJsonOutput['assetsByChunkName'] (#42219)
`assetsByChunkName` is an object keyed by chunk name with a value of either a single asset (string) or array of assets. See implementation here: https://github.com/webpack/webpack/blob/v4.41.5/lib/Stats.js#L441-L447
This commit is contained in:
Vendored
+1
-1
@@ -1583,7 +1583,7 @@ declare namespace webpack {
|
||||
name: string;
|
||||
size: number;
|
||||
}>;
|
||||
assetsByChunkName?: Record<string, Record<string, string[]>>;
|
||||
assetsByChunkName?: Record<string, string | string[]>;
|
||||
builtAt?: number;
|
||||
children?: Array<ToJsonOutput & { name?: string }>;
|
||||
chunks?: Array<{
|
||||
|
||||
Reference in New Issue
Block a user