mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge pull request #11142 from nchen63/fix-export
Fix `export as namespace` error when compiling with declarations
This commit is contained in:
commit
09eb6fef4e
10 files changed
+73
-1
No files matched your search
@@ -2746,8 +2746,9 @@ namespace ts {
|
||||
|
||||
// Type parameters are always visible
|
||||
case SyntaxKind.TypeParameter:
|
||||
// Source file is always visible
|
||||
// Source file and namespace export are always visible
|
||||
case SyntaxKind.SourceFile:
|
||||
case SyntaxKind.NamespaceExportDeclaration:
|
||||
return true;
|
||||
|
||||
// Export assignments do not create name bindings outside the module
|
||||
|
||||
Reference in new issue
Block a user