Skip to content

Commit 332c88e

Browse files
committed
PR feedback: change error microsoft#2497 message
1 parent fe6dad7 commit 332c88e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ namespace ts {
23812381
? "allowSyntheticDefaultImports"
23822382
: "esModuleInterop";
23832383

2384-
error(referencingLocation, Diagnostics.When_writing_ECMAScript_imports_callable_export_style_modules_can_only_be_imported_by_turning_on_the_0_flag_and_using_a_default_import, compilerOptionName);
2384+
error(referencingLocation, Diagnostics.This_module_can_only_be_imported_with_ECMAScript_imports_by_turning_on_the_0_flag_and_using_a_default_import, compilerOptionName);
23852385

23862386
return symbol;
23872387
}

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@
17681768
"category": "Error",
17691769
"code": 2496
17701770
},
1771-
"When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the '{0}' flag and using a default import.": {
1771+
"This module can only be imported with ECMAScript imports by turning on the '{0}' flag and using a default import.": {
17721772
"category": "Error",
17731773
"code": 2497
17741774
},

0 commit comments

Comments
 (0)