typescript 5.8.3 → 5.9.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -569,8 +569,10 @@
569
569
  "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "将 catch 子句变量默认为 “unknown” 而不是 “any”。",
570
570
  "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "模块的默认导出具有或正在使用专用名称“{0}”。",
571
571
  "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "无法使用 --isolatedDeclarations 推断默认导出。",
572
+ "Default_imports_are_not_allowed_in_a_deferred_import_18058": "延迟导入中不允许使用默认导入。",
572
573
  "Default_library_1424": "默认库",
573
574
  "Default_library_for_target_0_1425": "目标 \"{0}\" 的默认库",
575
+ "Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060": "仅当 ‘--module’ 标志设置为 ‘esnext’ 或 ‘preserve’ 时,才支持延迟导入。",
574
576
  "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "以下标识符的定义与另一个文件中的定义冲突: {0}",
575
577
  "Delete_all_unused_declarations_95024": "删除未使用的所有声明",
576
578
  "Delete_all_unused_imports_95147": "删除所有未使用的导入",
@@ -647,9 +649,9 @@
647
649
  "Duplicate_property_0_2718": "重复的属性 \"{0}\"。",
648
650
  "Duplicate_regular_expression_flag_1500": "正则表达式标志重复。",
649
651
  "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "动态导入的说明符类型必须是 \"string\",但此处类型是 \"{0}\"。",
650
- "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅当将“--module”标记设置为“es2020”、“es2022”、“esnext”、“commonjs”、“amd”、“system”、“umd”、“node16”、“node18”或“nodenext”时,才支持动态导入。",
652
+ "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅当将 ‘--module’ 标记设置为 ‘es2020’、‘es2022’、‘esnext’、‘commonjs’、‘amd’、‘system’、‘umd’、‘node16’、‘node18’、'node20' 或 ‘nodenext’ 时,才支持动态导入。",
651
653
  "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "动态导入只能接受模块说明符和可选的特性集作为参数",
652
- "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "仅当“--module”选项设置为“esnext”、“node16”、“node18”、“nodenext”或“preserve”时,动态导入才支持第二个参数。",
654
+ "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "仅当 ‘--module’ 选项设置为 ‘esnext’、‘node16’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’ 时,动态导入才支持第二个参数。",
653
655
  "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "当“module”设置为“preserve”时,CommonJS 模块中不允许使用 ESM 语法。",
654
656
  "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "启用“verbatimModuleSyntax”时,CommonJS 模块中不允许使用 ESM 语法。",
655
657
  "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "“{0}.{1}”的每个声明的值不同,其中应为“{2}”,但给出的是“{3}”。",
@@ -713,6 +715,7 @@
713
715
  "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "枚举成员初始值设定项必须可计算,而不引用具有 --isolatedDeclarations 的外部符号。",
714
716
  "Enum_member_must_have_initializer_1061": "枚举成员必须具有初始化表达式。",
715
717
  "Enum_name_cannot_be_0_2431": "枚举名不能为“{0}”。",
718
+ "Environment_Settings_6285": "环境设置",
716
719
  "Errors_Files_6041": "错误文件",
717
720
  "Escape_sequence_0_is_not_allowed_1488": "不允许转义序列“{0}”。",
718
721
  "Examples_Colon_0_6026": "示例: {0}",
@@ -789,6 +792,7 @@
789
792
  "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "文件 \"{0}\" 不在项目 \"{1}\" 的文件列表中。项目必须列出所有文件,或使用 \"include\" 模式。",
790
793
  "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "文件“{0}”不在 \"rootDir\"“{1}”下。\"rootDir\" 应包含所有源文件。",
791
794
  "File_0_not_found_6053": "找不到文件“{0}”。",
795
+ "File_Layout_6284": "文件布局",
792
796
  "File_Management_6245": "文件管理",
793
797
  "File_appears_to_be_binary_1490": "文件似乎是二进制文件。",
794
798
  "File_change_detected_Starting_incremental_compilation_6032": "检测到文件更改。正在启动增量编译...",
@@ -821,6 +825,7 @@
821
825
  "Fix_all_implicit_this_errors_95107": "修复所有 implicit-'this' 错误",
822
826
  "Fix_all_incorrect_return_type_of_an_async_functions_90037": "修复所有错误的异步函数返回类型",
823
827
  "Fix_all_with_type_only_imports_95182": "使用仅类型导入修复所有问题",
828
+ "For_nodejs_Colon_6287": "对于 nodejs:",
824
829
  "Found_0_errors_6217": "找到 {0} 个错误。",
825
830
  "Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 个错误。注意文件更改。",
826
831
  "Found_0_errors_in_1_files_6261": "在 {1} 个文件中找到 {0} 个错误。",
@@ -890,13 +895,13 @@
890
895
  "Import_0_from_1_90013": "从“{1}”导入“{0}”",
891
896
  "Import_assertion_values_must_be_string_literal_expressions_2837": "导入断言值必须为字符串字面量表达式。",
892
897
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "不允许在编译到 commonJS“require”调用的语句导入断言。",
893
- "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "仅当“--module”选项设置为“esnext”、“node18”、“nodenext”或“preserve”时,才支持导入断言。",
898
+ "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821": "仅当 ‘--module’ 选项设置为 ‘esnext’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’ 时,才支持导入断言。",
894
899
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "导入断言不能用于仅类型导入或导出。",
895
900
  "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "导入断言已被导入属性替换。使用 “with” 而不是 “assert”。",
896
901
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "面向 ECMAScript 模块时,不能使用导入分配。请考虑改用 \"import * as ns from \"mod\"\"、\"import {a} from \"mod\"\"、\"import d from \"mod\"\" 或另一种模块格式。",
897
902
  "Import_attribute_values_must_be_string_literal_expressions_2858": "导入属性值必须为字符串字面量表达式。",
898
903
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "不允许在编译到 commonJS“require” 调用的语句导入属性。",
899
- "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "仅当“--module”选项设置为“esnext”、“node18”、“nodenext”或“preserve”时,才支持导入属性。",
904
+ "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823": "仅当 ‘--module’ 选项设置为 ‘esnext’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’ 时,才支持导入属性。",
900
905
  "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "导入属性不能用于仅类型导入或导出。",
901
906
  "Import_declaration_0_is_using_private_name_1_4000": "导入声明“{0}”使用的是专用名称“{1}”。",
902
907
  "Import_declaration_conflicts_with_local_declaration_of_0_2440": "导入声明与“{0}”的局部声明冲突。",
@@ -1065,6 +1070,7 @@
1065
1070
  "Name_is_not_valid_95136": "名称无效",
1066
1071
  "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "命名捕获组仅在面向“ES2018”或更高版本时可用。",
1067
1072
  "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "名称相同的命名捕获组必须彼此排斥。",
1073
+ "Named_imports_are_not_allowed_in_a_deferred_import_18059": "延迟导入中不允许使用命名导入。",
1068
1074
  "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "当 ‘module’ 设置为 ‘{0}’ 时,不允许从 JSON 文件到 ECMAScript 模块中的命名导入。",
1069
1075
  "Named_property_0_of_types_1_and_2_are_not_identical_2319": "“{1}”和“{2}”类型的命名属性“{0}”不完全相同。",
1070
1076
  "Namespace_0_has_no_exported_member_1_2694": "命名空间“{0}”没有已导出的成员“{1}”。",
@@ -1153,6 +1159,7 @@
1153
1159
  "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "当“module”设置为“UMD”、“AMD”或“System”时,不能使用选项“verbatimModuleSyntax”。",
1154
1160
  "Options_0_and_1_cannot_be_combined_6370": "选项“{0}”与“{1}”不能组合在一起。",
1155
1161
  "Options_Colon_6027": "选项:",
1162
+ "Other_Outputs_6291": "其他输出",
1156
1163
  "Output_Formatting_6256": "输出格式设置",
1157
1164
  "Output_compiler_performance_information_after_building_6615": "生成后输出编译器性能信息。",
1158
1165
  "Output_directory_for_generated_declaration_files_6166": "已生成声明文件的输出目录。",
@@ -1231,8 +1238,8 @@
1231
1238
  "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "专用标识符仅在面向 ECMAScript 2015 和更高版本时可用。",
1232
1239
  "Private_identifiers_cannot_be_used_as_parameters_18009": "不能将专用标识符用作参数。",
1233
1240
  "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "不能在类型参数上访问专用或受保护的成员 \"{0}\"。",
1234
- "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
1235
- "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Project '{0}' can't be built because its dependency '{1}' was not built",
1241
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "无法生成项目“{0}”,因为其依赖项“{1}”有错误",
1242
+ "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "无法生成项目 \"{0}\" ,因为未生成其依赖项 \"{1}\"",
1236
1243
  "Project_0_is_being_forcibly_rebuilt_6388": "正在强制重新生成项目“{0}”",
1237
1244
  "Project_0_is_out_of_date_because_1_6420": "由于 {1},项目“{0}”已过期。",
1238
1245
  "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "由于 buildinfo 文件“{1}”指示文件“{2}”曾是编译的根文件,但不再是了,因此项目“{0}”已过期。",
@@ -1315,6 +1322,7 @@
1315
1322
  "Range_out_of_order_in_character_class_1517": "字符类中的范围顺序不对。",
1316
1323
  "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "启用“{0}”时重新导出类型需要使用“导出类型”。",
1317
1324
  "React_components_cannot_include_JSX_namespace_names_2639": "React 组件不能包含 JSX 命名空间名称",
1325
+ "Recommended_Options_6294": "建议的选项",
1318
1326
  "Redirect_output_structure_to_the_directory_6006": "将输出结构重定向到目录。",
1319
1327
  "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "减少 TypeScript 自动加载的项目数。",
1320
1328
  "Referenced_project_0_may_not_disable_emit_6310": "引用的项目“{0}”可能不会禁用发出。",
@@ -1429,6 +1437,7 @@
1429
1437
  "Scoped_package_detected_looking_in_0_6182": "检测到范围包,请在“{0}”中查看",
1430
1438
  "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "正在搜索所有上级 node_modules 目录以查找回退扩展: {0}。",
1431
1439
  "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "正在搜索所有上级 node_modules 目录以查找首选扩展: {0}。",
1440
+ "See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286": "另请参阅 https://aka.ms/tsconfig/module",
1432
1441
  "Selection_is_not_a_valid_statement_or_statements_95155": "所选内容不是有效的语句",
1433
1442
  "Selection_is_not_a_valid_type_node_95133": "所选内容不是有效的类型节点",
1434
1443
  "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "为发出的 JavaScript 设置 JavaScript 语言版本并包含兼容的库声明。",
@@ -1447,8 +1456,8 @@
1447
1456
  "Skip_type_checking_all_d_ts_files_6693": "跳过对所有 .d.ts 文件的类型检查。",
1448
1457
  "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "跳过 TypeScript 附带的类型检查 .d.ts 文件。",
1449
1458
  "Skip_type_checking_of_declaration_files_6012": "跳过声明文件的类型检查。",
1450
- "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
1451
- "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Skipping build of project '{0}' because its dependency '{1}' was not built",
1459
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "正在跳过项目“{0}”的生成,因为其依赖项“{1}”有错误",
1460
+ "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "即将跳过项目 \"{0}\" 的生成,因为未生成其依赖项 \"{1}\"",
1452
1461
  "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "正在跳过看起来像绝对 URI、目标文件类型的模块“{0}”: {1}。",
1453
1462
  "Source_from_referenced_project_0_included_because_1_specified_1414": "由于指定了 \"{1}\",因此包含了引用的项目 \"{0}\" 的源",
1454
1463
  "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "由于已将 \"--module\" 指定为 \"none\",因此包含了引用的项目 \"{0}\" 的源",
@@ -1508,9 +1517,11 @@
1508
1517
  "Statements_are_not_allowed_in_ambient_contexts_1036": "不允许在环境上下文中使用语句。",
1509
1518
  "Static_members_cannot_reference_class_type_parameters_2302": "静态成员不能引用类类型参数。",
1510
1519
  "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "静态属性“{0}”与构造函数“{1}”的内置属性函数“{0}”冲突。",
1520
+ "Stricter_Typechecking_Options_6292": "更严格的类型检查选项",
1511
1521
  "String_literal_expected_1141": "应为字符串字面量。",
1512
1522
  "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "当“--module”标志设置为“es2015”或“es2020”时,不支持字符串文本导入和导出名称。",
1513
1523
  "String_literal_with_double_quotes_expected_1327": "应为带双引号的字符串字面量。",
1524
+ "Style_Options_6293": "样式选项",
1514
1525
  "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "使用颜色和上下文风格化错误和消息(实验)。",
1515
1526
  "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "当有减号时,子空间标志必须存在。",
1516
1527
  "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "后续属性声明必须属于同一类型。属性“{0}”的类型必须为“{1}”,但此处却为类型“{2}”。",
@@ -1562,7 +1573,7 @@
1562
1573
  "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全局类型 \"JSX.{0}\" 不可具有多个属性。",
1563
1574
  "The_implementation_signature_is_declared_here_2750": "在此处声明实现签名。",
1564
1575
  "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "将生成到 CommonJS 输出的文件中不允许 'import.meta' 元属性。",
1565
- "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "仅当“--module”选项为“es2020”、“es2022”、“esnext”、“system”、“node16”、“node18”或“nodenext”时,才允许使用“import.meta”元属性。",
1576
+ "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "仅当 '--module' 选项为 'es2020'、'es2022'、'esnext'、'system'、'node16'、'node18'、'node20' 或 'nodenext' 时,才允许使用 'import.meta' 元属性。",
1566
1577
  "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "如果没有引用 \"{1}\",则无法命名 \"{0}\" 的推断类型。这很可能不可移植。需要类型注释。",
1567
1578
  "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "推断类型“{0}”引用的类型具有无法简单序列化的循环结构。必须具有类型注释。",
1568
1579
  "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "“{0}”的推断类型引用不可访问的“{1}”类型。需要类型批注。",
@@ -1655,6 +1666,7 @@
1655
1666
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "此条件将始终返回 true,因为始终定义了函数。你是想改为调用它吗?",
1656
1667
  "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "此构造函数可能会转换为类声明。",
1657
1668
  "This_expression_is_always_nullish_2871": "此表达式始终为 null。",
1669
+ "This_expression_is_never_nullish_2881": "此表达式从不为 null。",
1658
1670
  "This_expression_is_not_callable_2349": "此表达式不可调用。",
1659
1671
  "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "此表达式是 \"get\" 访问器,因此不可调用。你想在不使用 \"()\" 的情况下使用它吗?",
1660
1672
  "This_expression_is_not_constructable_2351": "此表达式不可构造。",
@@ -1700,10 +1712,10 @@
1700
1712
  "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "若要将此文件转换为 ECMAScript 模块,请将其文件扩展名更改为“{0}”,或将字段“\"type\": \"module\"”添加到“{1}”。",
1701
1713
  "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "若要将此文件转换为 ECMAScript 模块,请将其文件扩展名更改为“{0}”,或者使用“{ \"type\": \"module\" }”创建本地 package.json 文件。",
1702
1714
  "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "若要将此文件转换为 ECMAScript 模块,请使用“{ \"type\": \"module\" }”创建本地 package.json 文件。",
1703
- "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”时,且“target”选项设置为“es2017”或更高版本时,才允许使用顶级“await”表达式。",
1704
- "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”且“target”选项设置为“es2017”或更高时,才允许使用顶级“await using”语句。",
1715
+ "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "仅当 ‘module’ 选项设置为 ‘es2022’、‘esnext’、‘system’、‘node16’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’,且 ‘target’ 选项设置为 ‘es2017’ 或更高版本时,才允许使用顶级 ‘await’ 表达式。",
1716
+ "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "仅当 ‘module’ 选项设置为 ‘es2022’、‘esnext’、‘system’、‘node16’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’ 且 ‘target’ 选项设置为 ‘es2017’ 或更高时,才允许使用顶级 ‘await using’ 语句。",
1705
1717
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 文件中的顶级声明必须以 \"declare\" 或 \"export\" 修饰符开头。",
1706
- "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”时,且“target”选项设置为“es2017”或更高版本时,才允许使用顶级“for await”循环。",
1718
+ "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "仅当 ‘module’ 选项设置为 ‘es2022’、‘esnext’、‘system’、‘node16’、‘node18’、‘node20’、‘nodenext’ 或 ‘preserve’,且 ‘target’ 选项设置为 ‘es2017’ 或更高版本时,才允许使用顶级 ‘for await’ 循环。",
1707
1719
  "Trailing_comma_not_allowed_1009": "不允许使用尾随逗号。",
1708
1720
  "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "将每个文件转换为单独的模块(类似 \"ts.transpileModule\")。",
1709
1721
  "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "尝试使用 `npm i --save-dev @types/{1}` (如果存在),或者添加一个包含 `declare module '{0}';` 的新声明(.d.ts)文件",
@@ -1946,6 +1958,7 @@
1946
1958
  "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "\"{0}\" 在类 \"{1}\" 中定义为访问器,但这里在 \"{2}\" 中重写为实例属性。",
1947
1959
  "_0_is_deprecated_6385": "“{0}”已弃用。",
1948
1960
  "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "“{0}”不是关键字“{1}”的有效元属性。是否是指“{2}”?",
1961
+ "_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061": "“{0}”不是关键字 ‘import’ 的有效元属性。你是说 ‘meta’ 还是 ‘defer’?",
1949
1962
  "_0_is_not_allowed_as_a_parameter_name_1390": "不允许将 '{0}' 作为参数名。",
1950
1963
  "_0_is_not_allowed_as_a_variable_declaration_name_1389": "“{0}”不得用作变量声明名称。",
1951
1964
  "_0_is_of_type_unknown_18046": "“{0}”的类型为“未知”。",
@@ -1997,13 +2010,15 @@
1997
2010
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "\"abstract\" 修饰符仅可出现在类、方法或属性声明中。",
1998
2011
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "\"accessor\" 修饰符只能出现在属性声明中。",
1999
2012
  "and_here_6204": "并在这里。",
2000
- "arguments_cannot_be_referenced_in_property_initializers_2815": "无法在属性初始化表达式中引用 \"arguments\"。",
2013
+ "and_npm_install_D_types_Slashnode_6290": " npm 安装 -D @types/节点",
2014
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "无法在属性初始值设定项或类静态初始化块中引用 'arguments'。",
2001
2015
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "“auto”: 将带有导入、导出、import.meta、jsx (带有 jsx: react-jsx)或 esm 格式(带模块: node16+)的文件视为模块。",
2002
2016
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "\"await\" 表达式不能在类静态块内使用。",
2003
2017
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "仅当文件是模块时,才允许在该文件的顶层使用 \"await\" 表达式,但此文件没有导入或导出。请考虑添加空的 \"export {}\" 以将此文件变为模块。",
2004
2018
  "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "仅允许在异步函数和模块顶级使用 \"await\" 表达式。",
2005
2019
  "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "不能在参数初始化表达式中使用 \"await\" 表达式。",
2006
2020
  "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" 对此表达式的类型没有影响。",
2021
+ "await_using_declarations_are_not_allowed_in_ambient_contexts_1546": "环境上下文中不允许使用 ‘await using’ 声明。",
2007
2022
  "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "只有当文件是模块时,才允许在该文件的顶层使用 \"await using\" 语句,但此文件没有导入或导出。可考虑添加空的 \"export {}\" 将此文件变为模块。",
2008
2023
  "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "\"await using\" 语句仅允许在异步函数和顶级模块中使用。",
2009
2024
  "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "\"await using\" 语句不能在类静态块内使用。",
@@ -2098,6 +2113,7 @@
2098
2113
  "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "不可在具有绑定名称的变量声明中使用 \"unique symbol\" 类型。",
2099
2114
  "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "\"use strict\" 指令不能与非简单参数列表一起使用。",
2100
2115
  "use_strict_directive_used_here_1349": "此处使用了 \"use strict\" 指令。",
2116
+ "using_declarations_are_not_allowed_in_ambient_contexts_1545": "环境上下文中不允许使用 ‘using’ 声明。",
2101
2117
  "with_statements_are_not_allowed_in_an_async_function_block_1300": "不允许在异步函数块中使用 \"with\" 语句。",
2102
2118
  "with_statements_are_not_allowed_in_strict_mode_1101": "严格模式下不允许使用 \"with\" 语句。",
2103
2119
  "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "\"yield\" 表达式隐式导致 \"any\" 类型,因为它的包含生成器缺少返回类型批注。",
@@ -569,8 +569,10 @@
569
569
  "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "預設 catch 子句變數為 'unknown' 而非 'any'。",
570
570
  "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "模組的預設匯出具有或正在使用私用名稱 '{0}'。",
571
571
  "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "無法使用 --isolatedDeclarations 推斷預設匯出。",
572
+ "Default_imports_are_not_allowed_in_a_deferred_import_18058": "延遲的匯入中不允許預設匯入。",
572
573
  "Default_library_1424": "預設程式庫",
573
574
  "Default_library_for_target_0_1425": "目標 '{0}' 的預設程式庫",
575
+ "Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060": "只有當 '--module' 旗標設定為 'esnext' 或 'preserve' 時,才支援延遲的匯入。",
574
576
  "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "下列識別碼的定義與其他檔案中的定義衝突: {0}",
575
577
  "Delete_all_unused_declarations_95024": "刪除所有未使用的宣告",
576
578
  "Delete_all_unused_imports_95147": "刪除所有未使用的匯入",
@@ -647,9 +649,9 @@
647
649
  "Duplicate_property_0_2718": "屬性 '{0}' 重複。",
648
650
  "Duplicate_regular_expression_flag_1500": "重複的規則運算式旗標。",
649
651
  "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。",
650
- "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'node18' 或 'nodenext',才支援動態匯入。",
652
+ "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'node18'、'node20' 或 'nodenext',才支援動態匯入。",
651
653
  "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "動態匯入只接受模組指定名稱和一系列選擇性屬性來做為引數",
652
- "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "當 '--module' 選項設定為 'esnext'、'node16'、'node18'、'nodenext' 或 'preserve' 時,動態匯入只支援第二個引數。",
654
+ "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "當 '--module' 選項設定為 'esnext'、'node16'、'node18'、'node20'、'nodenext' 或 'preserve' 時,動態匯入只支援第二個引數。",
653
655
  "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "當 'module' 設定為 'preserve' 時,CommonJS 模組中不允許 ESM 語法。",
654
656
  "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "啟用 'verbatimModuleSyntax' 時,CommonJS 模組中不允許 ESM 語法。",
655
657
  "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "'{0}.{1}' 的每個宣告值不同,其中應該要有 '{2}',但只包含 '{3}'。",
@@ -713,6 +715,7 @@
713
715
  "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "列舉成員初始設定式必須是可計算,且不參考具有 --isolatedDeclarations 的外部符號。",
714
716
  "Enum_member_must_have_initializer_1061": "列舉成員必須有初始設定式。",
715
717
  "Enum_name_cannot_be_0_2431": "列舉名稱不得為 '{0}'。",
718
+ "Environment_Settings_6285": "環境設定",
716
719
  "Errors_Files_6041": "錯誤檔案",
717
720
  "Escape_sequence_0_is_not_allowed_1488": "不允許逸出序列 '{0}'。",
718
721
  "Examples_Colon_0_6026": "範例: {0}",
@@ -789,6 +792,7 @@
789
792
  "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "檔案 '{0}' 未列於專案 '{1}' 的檔案清單內。專案必須列出所有檔案,或使用 'include' 模式。",
790
793
  "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "檔案 '{0}' 不在 'rootDir' '{1}' 之下。'rootDir' 必須包含所有原始程式檔。",
791
794
  "File_0_not_found_6053": "找不到檔案 '{0}'。",
795
+ "File_Layout_6284": "檔案配置",
792
796
  "File_Management_6245": "檔案管理",
793
797
  "File_appears_to_be_binary_1490": "檔案顯示為二進位。",
794
798
  "File_change_detected_Starting_incremental_compilation_6032": "偵測到檔案變更。正在啟動累加編譯...",
@@ -821,6 +825,7 @@
821
825
  "Fix_all_implicit_this_errors_95107": "修正所有隱含 'this' 的錯誤",
822
826
  "Fix_all_incorrect_return_type_of_an_async_functions_90037": "修正非同步函式所有不正確的傳回型別",
823
827
  "Fix_all_with_type_only_imports_95182": "使用僅限類型匯入來修正所有問題",
828
+ "For_nodejs_Colon_6287": "針對 nodejs:",
824
829
  "Found_0_errors_6217": "找到 {0} 個錯誤。",
825
830
  "Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 個錯誤。正在監看檔案變更。",
826
831
  "Found_0_errors_in_1_files_6261": "在 {1} 檔案中發現 {0} 個錯誤。",
@@ -890,13 +895,13 @@
890
895
  "Import_0_from_1_90013": "從 \"{1}\" 匯入 '{0}'",
891
896
  "Import_assertion_values_must_be_string_literal_expressions_2837": "匯入判斷提示值必須是字串常值運算式。",
892
897
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "編譯為 CommonJS 'require' 呼叫的陳述式上不允許匯入判斷提示。",
893
- "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "只有當 '--module' 選項設定為 'esnext'、'node18'、'nodenext' 或 'preserve' 時,才支援匯入判斷提示。",
898
+ "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821": "只有當 '--module' 選項設定為 'esnext'、'node18'、'node20'、'nodenext' 或 'preserve' 時,才支援匯入判斷提示。",
894
899
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "匯入判斷提示不能與僅限類型的匯入或匯出搭配使用。",
895
900
  "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "匯入宣告已由匯入屬性取代。使用 『with』 而非 'assert'。",
896
901
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "當目標為 ECMAScript 模組時,無法使用匯入指派。請考慮改用 'import * as ns from \"mod\"'、'import {a} from \"mod\"'、'import d from \"mod\"' 或其他模組格式。",
897
902
  "Import_attribute_values_must_be_string_literal_expressions_2858": "匯入屬性值必須是字串常值運算式。",
898
903
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "編譯為 CommonJS 'require' 呼叫的陳述式上不允許匯入屬性。",
899
- "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "只有當 '--module' 選項設定為 'esnext'、'node18'、'nodenext' 或 'preserve’ 時,才支援匯入屬性。",
904
+ "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823": "只有當 '--module' 選項設定為 'esnext'、'node18'、'node20'、'nodenext' 或 'preserve’ 時,才支援匯入屬性。",
900
905
  "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "匯入屬性不能與僅限類型的匯入或匯出搭配使用。",
901
906
  "Import_declaration_0_is_using_private_name_1_4000": "匯入宣告 '{0}' 使用私用名稱 '{1}'。",
902
907
  "Import_declaration_conflicts_with_local_declaration_of_0_2440": "匯入宣告與 '{0}' 的區域宣告衝突。",
@@ -1065,6 +1070,7 @@
1065
1070
  "Name_is_not_valid_95136": "名稱無效",
1066
1071
  "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "只有以 'ES2018' 或更新版本為目標時,才可以使用具名擷取群組。",
1067
1072
  "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "具有相同名稱的命名擷取群組必須互相排除。",
1073
+ "Named_imports_are_not_allowed_in_a_deferred_import_18059": "延遲的匯出中不允許具名匯入。",
1068
1074
  "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "當 'module' 設定為 '{0}' 時,不允許從 JSON 檔案具名匯入 ECMAScript 模組。",
1069
1075
  "Named_property_0_of_types_1_and_2_are_not_identical_2319": "類型 '{1}' 及 '{2}' 的具名屬性 '{0}' 不一致。",
1070
1076
  "Namespace_0_has_no_exported_member_1_2694": "命名空間 '{0}' 沒有匯出的成員 '{1}'。",
@@ -1153,6 +1159,7 @@
1153
1159
  "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "當 'module' 設定為 'UMD'、'AMD' 或 'System' 時,無法使用選項 'verbatimModuleSyntax'。",
1154
1160
  "Options_0_and_1_cannot_be_combined_6370": "無法合併選項 '{0}' 與 '{1}'。",
1155
1161
  "Options_Colon_6027": "選項:",
1162
+ "Other_Outputs_6291": "其他輸出",
1156
1163
  "Output_Formatting_6256": "輸出格式",
1157
1164
  "Output_compiler_performance_information_after_building_6615": "在組建後輸出編譯器效能資訊。",
1158
1165
  "Output_directory_for_generated_declaration_files_6166": "所產生之宣告檔案的輸出目錄。",
@@ -1231,8 +1238,8 @@
1231
1238
  "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "只有當目標為 ECMAScript 2015 及更新版本時,才可使用私人識別碼。",
1232
1239
  "Private_identifiers_cannot_be_used_as_parameters_18009": "私人識別碼不可用作為參數。",
1233
1240
  "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "無法在型別參數上存取私人或受保護的成員 '{0}'。",
1234
- "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Project '{0}' can't be built because its dependency '{1}' has errors",
1235
- "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Project '{0}' can't be built because its dependency '{1}' was not built",
1241
+ "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "因為專案 '{0}' 的相依性 '{1}' 發生錯誤,所以無法建置該專案",
1242
+ "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "因為未建置專案 '{0}' 的相依性 '{1}',所以無法建置該專案",
1236
1243
  "Project_0_is_being_forcibly_rebuilt_6388": "正在強制重建專案 '{0}'",
1237
1244
  "Project_0_is_out_of_date_because_1_6420": "由於 {1},專案 '{0}' 已過期。",
1238
1245
  "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "專案 '{0}' 已過期,因為 buildinfo 檔案 '{1}' 表示檔案 '{2}' 曾經是編譯的根檔案,但已不再是。",
@@ -1315,6 +1322,7 @@
1315
1322
  "Range_out_of_order_in_character_class_1517": "字元類別中的範圍失序。",
1316
1323
  "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "啟用 '{0}' 時重新匯出類型需要使用 'export type'。",
1317
1324
  "React_components_cannot_include_JSX_namespace_names_2639": "React 元件不得包含 JSX 命名空間名稱",
1325
+ "Recommended_Options_6294": "建議選項",
1318
1326
  "Redirect_output_structure_to_the_directory_6006": "將輸出結構重新導向至目錄。",
1319
1327
  "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "減少 TypeScript 自動載入的專案數目。",
1320
1328
  "Referenced_project_0_may_not_disable_emit_6310": "參考的專案 '{0}' 不得停用發出。",
@@ -1429,6 +1437,7 @@
1429
1437
  "Scoped_package_detected_looking_in_0_6182": "偵測到範圍套件,正於 '{0}' 尋找",
1430
1438
  "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "正在搜尋所有上階 node_modules 目錄,以取得後援延伸模組: {0}。",
1431
1439
  "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "正在搜尋所有上階 node_modules 目錄,以取得慣用延伸模組: {0}。",
1440
+ "See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286": "另請參閱 https://aka.ms/tsconfig/module",
1432
1441
  "Selection_is_not_a_valid_statement_or_statements_95155": "選取項目非有效的一或多個陳述式",
1433
1442
  "Selection_is_not_a_valid_type_node_95133": "選取範圍不是有效的類型節點",
1434
1443
  "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "為發出的 JavaScript 設定 JavaScript 語言版本,並包含相容的程式庫宣告。",
@@ -1447,8 +1456,8 @@
1447
1456
  "Skip_type_checking_all_d_ts_files_6693": "略過所有 .d.ts 檔案的型別檢查。",
1448
1457
  "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "略過 TypeScript 中包含 .d.ts 檔案的型別檢查。",
1449
1458
  "Skip_type_checking_of_declaration_files_6012": "跳過宣告檔案的類型檢查。",
1450
- "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors",
1451
- "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Skipping build of project '{0}' because its dependency '{1}' was not built",
1459
+ "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "因為專案 '{0}' 的相依性 '{1}' 發生錯誤,所以跳過建置該專案",
1460
+ "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "因為未建置專案 '{0}' 的相依性 '{1}',所以正在跳過該專案的組建",
1452
1461
  "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "正在跳過看起來像絕對 URI 的模組 '{0}',目標檔案類型: {1}。",
1453
1462
  "Source_from_referenced_project_0_included_because_1_specified_1414": "因為指定了 '{1}',所以包含參考的專案 '{0}' 來源",
1454
1463
  "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "因為 '--module' 指定為 'none',所以包含參考的專案 '{0}' 來源",
@@ -1508,9 +1517,11 @@
1508
1517
  "Statements_are_not_allowed_in_ambient_contexts_1036": "環境內容中不得有陳述式。",
1509
1518
  "Static_members_cannot_reference_class_type_parameters_2302": "靜態成員不得參考類別類型參數。",
1510
1519
  "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "靜態屬性 '{0}' 與建構函式 '{1}' 的內建屬性 'Function.{0}' 相衝突。",
1520
+ "Stricter_Typechecking_Options_6292": "更嚴格的類型檢查選項",
1511
1521
  "String_literal_expected_1141": "必須是字串常值。",
1512
1522
  "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "當 '--module' 旗標設定為 'es2015' 或 'es2020' 時,不支援字串常值匯入和匯出名稱。",
1513
1523
  "String_literal_with_double_quotes_expected_1327": "應有具雙引號的字串常值。",
1524
+ "Style_Options_6293": "樣式選項",
1514
1525
  "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "使用色彩及內容來設計錯誤與訊息的風格 (實驗)。",
1515
1526
  "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "當有減號時,必須有子模式旗標。",
1516
1527
  "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "後續的屬性宣告必須具有相同的類型。屬性 '{0}' 的類型必須是 '{1}',但此處卻是類型 '{2}'。",
@@ -1562,7 +1573,7 @@
1562
1573
  "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全域類型 'JSX.{0}' 的屬性不得超過一個。",
1563
1574
  "The_implementation_signature_is_declared_here_2750": "實作簽章宣告於此處。",
1564
1575
  "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "將會組建至 CommonJS 輸出的檔案中不允許 'import.meta' 中繼屬性。",
1565
- "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、'node16'、'node18' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。",
1576
+ "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、'node16'、'node18'、'node20' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。",
1566
1577
  "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' 的推斷類型無法在沒有 '{1}' 參考的情況下命名。其可能非可攜式。必須有型別註解。",
1567
1578
  "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' 的推斷型別參考了具有迴圈結構且不是可完整序列化的型別。必須有型別註解。",
1568
1579
  "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' 的推斷型別參考了無法存取的 '{1}' 型別。必須有型別註解。",
@@ -1655,6 +1666,7 @@
1655
1666
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?",
1656
1667
  "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "此建構函式可轉換為類別宣告。",
1657
1668
  "This_expression_is_always_nullish_2871": "此運算式一律為 nullish.",
1669
+ "This_expression_is_never_nullish_2881": "此運算式一律不會是 nullish。",
1658
1670
  "This_expression_is_not_callable_2349": "無法呼叫此運算式。",
1659
1671
  "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "因為此運算式為 'get' 存取子,所以無法呼叫。要在沒有 '()' 的情況下,使用該運算式嗎?",
1660
1672
  "This_expression_is_not_constructable_2351": "無法建構此運算式。",
@@ -1700,10 +1712,10 @@
1700
1712
  "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "若要將此檔案轉換為 ECMAScript 模組,請將其副檔名變更為 '{0}',或將欄位 `\"type\": \"module\"` 新增至 '{1}'。",
1701
1713
  "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "若要將此檔案轉換為 ECMAScript 模組,請將其副檔名變更為 '{0}',或使用 `{ \"type\": \"module\" }` 建立本機 package.json 檔案。",
1702
1714
  "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "若要將此檔案轉換為 ECMAScript 模組,請建立具有 `{ \"type\": \"module\" }` 的本機 package.json 檔案。",
1703
- "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。",
1704
- "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "只有當 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',且 'target' 選項設為 'es2017' 或更高版本時,才能在最上層使用 'await using' 陳述式。",
1715
+ "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'node20'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。",
1716
+ "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "只有當 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'node20'、'nodenext' 或 'preserve',且 'target' 選項設為 'es2017' 或更高版本時,才能在最上層使用 'await using' 陳述式。",
1705
1717
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 檔案中的最上層宣告必須以 'declare' 或 'export' 修飾元開頭。",
1706
- "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。",
1718
+ "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'node20'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。",
1707
1719
  "Trailing_comma_not_allowed_1009": "尾端不得為逗號。",
1708
1720
  "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "以個別模組的形式轉換每個檔案的語言 (類似於 'ts.transpileModule')。",
1709
1721
  "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "如有 `npm i --save-dev @types/{1}`,請嘗試使用,或新增包含 `declare module '{0}';` 的宣告 (.d.ts) 檔案",
@@ -1946,6 +1958,7 @@
1946
1958
  "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}' 在類別 '{1}' 中定義為存取子,但在此處的 '{2}' 中卻覆寫為執行個體屬性。",
1947
1959
  "_0_is_deprecated_6385": "'{0}' 已淘汰。",
1948
1960
  "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012": "'{0}' 對關鍵字 '{1}' 而言不是有效的中繼屬性。您是指 '{2}' 嗎?",
1961
+ "_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061": "'{0}' 對關鍵字 'import' 而言不是有效的中繼屬性。您的意思是 'meta' 或 'defer'?",
1949
1962
  "_0_is_not_allowed_as_a_parameter_name_1390": "不允許 '{0}' 做為參數名稱。",
1950
1963
  "_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' 不能是變數宣告名稱。",
1951
1964
  "_0_is_of_type_unknown_18046": "'{0}' 的類型為 'unknown'。",
@@ -1997,13 +2010,15 @@
1997
2010
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾元只能出現在類別宣告、方法宣告或屬性宣告。",
1998
2011
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾詞只能出現在屬性宣告。",
1999
2012
  "and_here_6204": "及此處。",
2000
- "arguments_cannot_be_referenced_in_property_initializers_2815": "屬性初始設定式中不得參考 'arguments'。",
2013
+ "and_npm_install_D_types_Slashnode_6290": " npm 安裝 -D @types/node",
2014
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "在屬性初始化器或類別靜態初始化區塊中無法引用『arguments』。",
2001
2015
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 處理具有 imports、exports、import.meta, jsx (具有 jsx: react-jsx) 的檔案,或以 esm 格式 (具有 module: node16+) 作為模組。",
2002
2016
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 運算式無法在類別靜態區塊內使用。",
2003
2017
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "當檔案為模組時,只允許 'await' 運算式位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。",
2004
2018
  "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "只允許在非同步函式中與模組的最上層使用 'await' 運算式。",
2005
2019
  "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 運算式不得用於參數初始設定式。",
2006
2020
  "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' 對此運算式的類型沒有作用。",
2021
+ "await_using_declarations_are_not_allowed_in_ambient_contexts_1546": "環境內容中不允許使用 'await using' 宣告。",
2007
2022
  "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "當檔案為模組時,僅能在檔案最上層使用 'await using' 陳述式,但此檔案沒有任何匯入或匯出。建議新增空白的 'export {}',讓此檔案成為模組。",
2008
2023
  "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' 陳述式僅能在非同步函式內,以及模組的最上層使用。",
2009
2024
  "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' 陳述式無法在類別靜態區塊內使用。",
@@ -2098,6 +2113,7 @@
2098
2113
  "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "'unique symbol' 型別無法用在具有繫結名稱的變數宣告上。",
2099
2114
  "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "'use strict' 指示詞不可搭配非簡易參數清單使用。",
2100
2115
  "use_strict_directive_used_here_1349": "'use strict' 指示詞已用於此處。",
2116
+ "using_declarations_are_not_allowed_in_ambient_contexts_1545": "環境內容中不允許 'using' 宣告。",
2101
2117
  "with_statements_are_not_allowed_in_an_async_function_block_1300": "非同步函式區塊中不允許 'with' 陳述式。",
2102
2118
  "with_statements_are_not_allowed_in_strict_mode_1101": "不得在 strict 模式中使用 'with' 陳述式。",
2103
2119
  "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057": "因為 'yield' 運算式包含的產生器缺少傳回型別註解,所以其隱含導致 'any' 類型。",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.8.3",
5
+ "version": "5.9.0-beta",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -40,48 +40,48 @@
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@dprint/formatter": "^0.4.1",
43
- "@dprint/typescript": "0.93.3",
43
+ "@dprint/typescript": "0.93.4",
44
44
  "@esfx/canceltoken": "^1.0.0",
45
- "@eslint/js": "^9.17.0",
46
- "@octokit/rest": "^21.0.2",
45
+ "@eslint/js": "^9.20.0",
46
+ "@octokit/rest": "^21.1.1",
47
47
  "@types/chai": "^4.3.20",
48
- "@types/diff": "^5.2.3",
48
+ "@types/diff": "^7.0.1",
49
49
  "@types/minimist": "^1.2.5",
50
50
  "@types/mocha": "^10.0.10",
51
51
  "@types/ms": "^0.7.34",
52
52
  "@types/node": "latest",
53
53
  "@types/source-map-support": "^0.5.10",
54
54
  "@types/which": "^3.0.4",
55
- "@typescript-eslint/rule-tester": "^8.18.1",
56
- "@typescript-eslint/type-utils": "^8.18.1",
57
- "@typescript-eslint/utils": "^8.18.1",
55
+ "@typescript-eslint/rule-tester": "^8.24.1",
56
+ "@typescript-eslint/type-utils": "^8.24.1",
57
+ "@typescript-eslint/utils": "^8.24.1",
58
58
  "azure-devops-node-api": "^14.1.0",
59
59
  "c8": "^10.1.3",
60
60
  "chai": "^4.5.0",
61
- "chalk": "^4.1.2",
62
- "chokidar": "^3.6.0",
63
- "diff": "^5.2.0",
64
- "dprint": "^0.47.6",
65
- "esbuild": "^0.24.0",
66
- "eslint": "^9.17.0",
61
+ "chokidar": "^4.0.3",
62
+ "diff": "^7.0.0",
63
+ "dprint": "^0.49.0",
64
+ "esbuild": "^0.25.0",
65
+ "eslint": "^9.20.1",
67
66
  "eslint-formatter-autolinkable-stylish": "^1.4.0",
68
67
  "eslint-plugin-regexp": "^2.7.0",
69
- "fast-xml-parser": "^4.5.1",
68
+ "fast-xml-parser": "^4.5.2",
70
69
  "glob": "^10.4.5",
71
- "globals": "^15.13.0",
70
+ "globals": "^15.15.0",
72
71
  "hereby": "^1.10.0",
73
72
  "jsonc-parser": "^3.3.1",
74
- "knip": "^5.41.0",
73
+ "knip": "^5.44.4",
75
74
  "minimist": "^1.2.8",
76
75
  "mocha": "^10.8.2",
77
76
  "mocha-fivemat-progress-reporter": "^0.1.0",
78
- "monocart-coverage-reports": "^2.11.4",
77
+ "monocart-coverage-reports": "^2.12.1",
79
78
  "ms": "^2.1.3",
80
- "playwright": "^1.49.1",
79
+ "picocolors": "^1.1.1",
80
+ "playwright": "^1.50.1",
81
81
  "source-map-support": "^0.5.21",
82
82
  "tslib": "^2.8.1",
83
- "typescript": "^5.7.2",
84
- "typescript-eslint": "^8.18.1",
83
+ "typescript": "^5.7.3",
84
+ "typescript-eslint": "^8.24.1",
85
85
  "which": "^3.0.1"
86
86
  },
87
87
  "overrides": {
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "68cead182cc24afdc3f1ce7c8ff5853aba14b65a"
119
+ "gitHead": "ae9e5da45e864a83b2ecbf9e0e0698fd10d26059"
120
120
  }