PR feedback: change error #2497 message

This commit is contained in:
Alexander T 2018-12-18 10:39:32 +02:00
parent fe6dad7725
commit 332c88e57d
2 changed files with 2 additions and 2 deletions

View File

@ -2381,7 +2381,7 @@ namespace ts {
? "allowSyntheticDefaultImports"
: "esModuleInterop";
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);
error(referencingLocation, Diagnostics.This_module_can_only_be_imported_with_ECMAScript_imports_by_turning_on_the_0_flag_and_using_a_default_import, compilerOptionName);
return symbol;
}

View File

@ -1768,7 +1768,7 @@
"category": "Error",
"code": 2496
},
"When writing ECMAScript imports, callable 'export ='-style modules can only be imported by turning on the '{0}' flag and using a default import.": {
"This module can only be imported with ECMAScript imports by turning on the '{0}' flag and using a default import.": {
"category": "Error",
"code": 2497
},