mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
fix(47076):Fix error term of declaration in modules (#47087)
* Fix error term of declaration in modules * fix test * change error code of "An import declaration can only be used at the top level of a module." * Separate js and ts files for export errors in module. * Change non-top-level error in namespace * format Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
1 parent
2d0a00d457
commit
95c22d1750
14 files changed
+135
-98
No files matched your search
@@ -861,9 +861,9 @@ namespace ts {
|
||||
Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,
|
||||
Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,
|
||||
Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,
|
||||
Diagnostics.An_export_declaration_can_only_be_used_in_a_module.code,
|
||||
Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,
|
||||
Diagnostics.An_export_declaration_cannot_have_modifiers.code,
|
||||
Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module.code,
|
||||
Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,
|
||||
Diagnostics.An_import_declaration_cannot_have_modifiers.code,
|
||||
Diagnostics.An_object_member_cannot_be_declared_optional.code,
|
||||
Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,
|
||||
|
||||
Reference in new issue
Block a user