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 4c9ab41 commit 13f52c9Copy full SHA for 13f52c9
src/compiler/checker.ts
@@ -18756,10 +18756,11 @@ namespace ts {
18756
if (container.kind === SyntaxKind.ModuleDeclaration && !isAmbientModule(container)) {
18757
if (node.isExportEquals) {
18758
error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace);
18759
- } else {
+ }
18760
+ else {
18761
error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);
18762
}
-
18763
+
18764
return;
18765
18766
// Grammar checking
0 commit comments