We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd0a2e0 commit bf4b63dCopy full SHA for bf4b63d
1 file changed
src/compiler/program.ts
@@ -1071,8 +1071,11 @@ namespace ts {
1071
diagnostics.push(createDiagnosticForNode(node, Diagnostics.import_can_only_be_used_in_a_ts_file));
1072
return true;
1073
case SyntaxKind.ExportAssignment:
1074
- diagnostics.push(createDiagnosticForNode(node, Diagnostics.export_can_only_be_used_in_a_ts_file));
1075
- return true;
+ if ((<ExportAssignment>node).isExportEquals) {
+ diagnostics.push(createDiagnosticForNode(node, Diagnostics.export_can_only_be_used_in_a_ts_file));
1076
+ return true;
1077
+ }
1078
+ break;
1079
case SyntaxKind.ClassDeclaration:
1080
let classDeclaration = <ClassDeclaration>node;
1081
if (checkModifiers(classDeclaration.modifiers) ||
0 commit comments