Cherry-pick PR #50308 into release-4.8 (#50577)

Component commits:
5392e26891 Fix export = error message to not have redundant language

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
TypeScript Bot
2022-08-31 17:20:25 -07:00
committed by GitHub
parent 45c6828de0
commit 565a444d4b
8 changed files with 17 additions and 17 deletions

View File

@@ -2819,7 +2819,7 @@ namespace ts {
if (exportAssignment) {
addRelatedInfo(err, createDiagnosticForNode(
exportAssignment,
Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,
Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,
compilerOptionName
));
}

View File

@@ -2677,7 +2677,7 @@
"category": "Error",
"code": 2593
},
"This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag.": {
"This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag.": {
"category": "Error",
"code": 2594
},