mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Correctly mark visibile nodes when declaration isnt explicitly turned on but composite is true
Fixes #26669
This commit is contained in:
@@ -26347,7 +26347,7 @@ namespace ts {
|
||||
|
||||
function checkExportSpecifier(node: ExportSpecifier) {
|
||||
checkAliasSymbol(node);
|
||||
if (compilerOptions.declaration) {
|
||||
if (getEmitDeclarations(compilerOptions)) {
|
||||
collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true);
|
||||
}
|
||||
if (!node.parent.parent.moduleSpecifier) {
|
||||
@@ -26388,7 +26388,7 @@ namespace ts {
|
||||
if (node.expression.kind === SyntaxKind.Identifier) {
|
||||
markExportAsReferenced(node);
|
||||
|
||||
if (compilerOptions.declaration) {
|
||||
if (getEmitDeclarations(compilerOptions)) {
|
||||
collectLinkedAliases(node.expression as Identifier, /*setVisibility*/ true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,4 +11,7 @@ exports.__esModule = true;
|
||||
|
||||
|
||||
//// [/foo/out/test.d.ts]
|
||||
interface Foo {
|
||||
x: number;
|
||||
}
|
||||
export default Foo;
|
||||
|
||||
Reference in New Issue
Block a user