improved types fix1

This commit is contained in:
Alexander Cerutti
2019-06-01 00:38:42 +02:00
parent cd3b977b1f
commit b6005bd821

View File

@@ -184,7 +184,7 @@ function getModelBufferContents(model: BundleUnit): PartitionedBundle {
// separing localization folders // separing localization folders
const l10nFolders = bundleKeys.filter(file => file.includes(".lproj")); const l10nFolders = bundleKeys.filter(file => file.includes(".lproj"));
const l10nBundle: { [key: string]: BundleUnit } = Object.assign({}, const l10nBundle: PartitionedBundle["l10nBundle"] = Object.assign({},
...l10nFolders.map(folder => ...l10nFolders.map(folder =>
({ [folder]: bundle[folder] }) as BundleUnit ({ [folder]: bundle[folder] }) as BundleUnit
) )