From b6005bd821b5cdf43118125909648b921aacfc83 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 1 Jun 2019 00:38:42 +0200 Subject: [PATCH] improved types fix1 --- src/factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory.ts b/src/factory.ts index 5567439..b47d686 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -184,7 +184,7 @@ function getModelBufferContents(model: BundleUnit): PartitionedBundle { // separing localization folders const l10nFolders = bundleKeys.filter(file => file.includes(".lproj")); - const l10nBundle: { [key: string]: BundleUnit } = Object.assign({}, + const l10nBundle: PartitionedBundle["l10nBundle"] = Object.assign({}, ...l10nFolders.map(folder => ({ [folder]: bundle[folder] }) as BundleUnit )