From c0f26cddc16c0520e9f4fc2ce26e318f982b4668 Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Mon, 4 Feb 2019 23:42:38 +0100 Subject: [PATCH] Add type cast --- src/rollup/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rollup/index.ts b/src/rollup/index.ts index a24e1662069..e0480cc68fc 100644 --- a/src/rollup/index.ts +++ b/src/rollup/index.ts @@ -353,7 +353,7 @@ function getSortingFileType(file: OutputAsset | OutputChunk): SortingFileType { function createOutput(outputBundle: Record): RollupOutput { return { - output: Object.keys(outputBundle) + output: <[OutputChunk, ...(OutputChunk | OutputAsset)[]]>Object.keys(outputBundle) .map(fileName => outputBundle[fileName]) .sort((outputFileA, outputFileB) => { const fileTypeA = getSortingFileType(outputFileA);