mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
PR feedback: change error #2497 message
This commit is contained in:
parent
fe6dad7725
commit
332c88e57d
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user