Skip to content

Commit

Permalink
fix: Fix compatibility with TypeScript 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Sep 11, 2024
1 parent 4721ac1 commit f764e29
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 40 deletions.
2 changes: 1 addition & 1 deletion resources/api-extract.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,4 @@
"sap.zen.commons.layout.PositionContainer": "control",
"sap.zen.dsh.ValueHelpDialog": "content"
}
}
}
6 changes: 3 additions & 3 deletions resources/overrides/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import "./jquery.sap.mobile";
import "./jquery.sap";
import "./library/index"
import "./jquery.sap.mobile.d.ts";
import "./jquery.sap.d.ts";
import "./library/index.d.ts";
68 changes: 34 additions & 34 deletions resources/overrides/library/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import "./sap.chart";
import "./sap.collaboration";
import "./sap.ui.commons";
import "./sap.ui.comp";
import "./sap.ui.core";
import "./sap.ui.export";
import "./sap.f";
import "./sap.gantt";
import "./sap.ui.generic.app";
import "./sap.ui.integration";
import "./sap.ui.layout";
import "./sap.makit";
import "./sap.ui.mdc";
import "./sap.m";
import "./sap.me";
import "./sap.ui.richtexteditor";
import "./sap.rules.ui";
import "./sap.suite.ui.generic.template";
import "./sap.ui.vtm";
import "./sap.ui.suite";
import "./sap.suite.ui.commons";
import "./sap.suite.ui.microchart";
import "./sap.ui.support";
import "./sap.ui.table";
import "./sap.tnt";
import "./sap.ca.ui";
import "./sap.ui.unified";
import "./sap.ushell";
import "./sap.ui.ux3";
import "./sap.uxap";
import "./sap.ui.vbm";
import "./sap.viz";
import "./sap.ui.webc.fiori";
import "./sap.ui.webc.main";
import "./sap.chart.d.ts";
import "./sap.collaboration.d.ts";
import "./sap.ui.commons.d.ts";
import "./sap.ui.comp.d.ts";
import "./sap.ui.core.d.ts";
import "./sap.ui.export.d.ts";
import "./sap.f.d.ts";
import "./sap.gantt.d.ts";
import "./sap.ui.generic.app.d.ts";
import "./sap.ui.integration.d.ts";
import "./sap.ui.layout.d.ts";
import "./sap.makit.d.ts";
import "./sap.ui.mdc.d.ts";
import "./sap.m.d.ts";
import "./sap.me.d.ts";
import "./sap.ui.richtexteditor.d.ts";
import "./sap.rules.ui.d.ts";
import "./sap.suite.ui.generic.template.d.ts";
import "./sap.ui.vtm.d.ts";
import "./sap.ui.suite.d.ts";
import "./sap.suite.ui.commons.d.ts";
import "./sap.suite.ui.microchart.d.ts";
import "./sap.ui.support.d.ts";
import "./sap.ui.table.d.ts";
import "./sap.tnt.d.ts";
import "./sap.ca.ui.d.ts";
import "./sap.ui.unified.d.ts";
import "./sap.ushell.d.ts";
import "./sap.ui.ux3.d.ts";
import "./sap.uxap.d.ts";
import "./sap.ui.vbm.d.ts";
import "./sap.viz.d.ts";
import "./sap.ui.webc.fiori.d.ts";
import "./sap.ui.webc.main.d.ts";
5 changes: 3 additions & 2 deletions scripts/metadataProvider/createPseudoModulesInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ async function addOverrides(ui5Types: Record<string, apiJson[]>) {
return stringBuilder.join("\n");
});

indexFilesImports.push(`import "./${libName}";`);
const libFileName = libName + ".d.ts";
indexFilesImports.push(`import "./${libFileName}";`);
await writeFile(
new URL(`../../resources/overrides/library/${libName}.d.ts`, import.meta.url),
new URL(`../../resources/overrides/library/${libFileName}`, import.meta.url),
stringBuilder.join("\n")
);
}
Expand Down

0 comments on commit f764e29

Please sign in to comment.