We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f2c94 commit 039a7baCopy full SHA for 039a7ba
javascript/extractor/lib/typescript/src/main.ts
@@ -670,6 +670,12 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
670
if (file.endsWith(".d.ts")) {
671
return pathlib.basename(file, ".d.ts");
672
}
673
+ if (file.endsWith(".d.mts") || file.endsWith(".d.cts")) {
674
+ // We don't extract d.mts or d.cts files, but their symbol can coincide with that of a d.ts file,
675
+ // which means any module bindings we generate for it will ultimately be visible in QL.
676
+ let base = pathlib.basename(file);
677
+ return base.substring(0, base.length - '.d.mts'.length);
678
+ }
679
let base = pathlib.basename(file);
680
let dot = base.lastIndexOf('.');
681
return dot === -1 || dot === 0 ? base : base.substring(0, dot);
0 commit comments