Skip to content

Commit 05ceda7

Browse files
author
Noah Chen
committed
Fix error when compiling with declarations
1 parent 95c3ecc commit 05ceda7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,8 +2746,9 @@ namespace ts {
27462746

27472747
// Type parameters are always visible
27482748
case SyntaxKind.TypeParameter:
2749-
// Source file is always visible
2749+
// Source file and namespace export are always visible
27502750
case SyntaxKind.SourceFile:
2751+
case SyntaxKind.NamespaceExportDeclaration:
27512752
return true;
27522753

27532754
// Export assignments do not create name bindings outside the module

0 commit comments

Comments
 (0)