From a68259ee8883cc9899463fe79a78bb49a9d2f6de Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Sun, 9 Feb 2020 02:04:57 -0500 Subject: [PATCH] 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 --- types/webpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 1470966296..1b47298d04 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -1583,7 +1583,7 @@ declare namespace webpack { name: string; size: number; }>; - assetsByChunkName?: Record>; + assetsByChunkName?: Record; builtAt?: number; children?: Array; chunks?: Array<{