diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 85ade1938..8fbbe9ebb 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -84,19 +84,21 @@ async function transformFiles(sapui5Version: string) { const {enums} = metadataProvider.getModel(); - const groupedEnums = Object.keys(enums).reduce((acc: Record, enumKey: string) => { + const groupedEnums = Object.keys(enums) + .reduce((acc: Record, enumKey: string) => { // Filter only real pseudo modules i.e. defined within library.js files - if (!pseudoModuleNames[enumKey]) { - return acc; - } + if (!pseudoModuleNames[enumKey]) { + return acc; + } - const curEnum = enums[enumKey]; + const curEnum = enums[enumKey]; - acc[curEnum.library] = acc[curEnum.library] ?? []; - acc[curEnum.library].push({enum: curEnum, export: pseudoModuleNames[enumKey]}); + acc[curEnum.library] = acc[curEnum.library] ?? []; + acc[curEnum.library].push( + {enum: curEnum, export: pseudoModuleNames[enumKey]}); - return acc; - }, Object.create(null) as Record); + return acc; + }, Object.create(null) as Record); await addOverrides(groupedEnums); } @@ -143,7 +145,7 @@ function buildJSDoc(enumEntry: UI5Enum | UI5EnumValue, indent = "") { return jsDocBuilder.join("\n"); } -async function addOverrides(enums: Record) { +async function addOverrides(enums: Record) { const indexFilesImports: string[] = []; for (const libName of Object.keys(enums)) {