mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add missing isolatedModules error for export import (#47838)
* Add missing isolatedModules error for `export import` * Update existing baseline
This commit is contained in:
@@ -39940,6 +39940,9 @@ namespace ts {
|
||||
name
|
||||
);
|
||||
}
|
||||
if (isType && node.kind === SyntaxKind.ImportEqualsDeclaration && hasEffectiveModifier(node, ModifierFlags.Export)) {
|
||||
error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SyntaxKind.ExportSpecifier: {
|
||||
|
||||
@@ -867,6 +867,10 @@
|
||||
"category": "Error",
|
||||
"code": 1268
|
||||
},
|
||||
"Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided.": {
|
||||
"category": "Error",
|
||||
"code": 1269
|
||||
},
|
||||
|
||||
"'with' statements are not allowed in an async function block.": {
|
||||
"category": "Error",
|
||||
@@ -1421,7 +1425,7 @@
|
||||
"category": "Error",
|
||||
"code": 1474
|
||||
},
|
||||
|
||||
|
||||
"The types of '{0}' are incompatible between these types.": {
|
||||
"category": "Error",
|
||||
"code": 2200
|
||||
|
||||
Reference in New Issue
Block a user