typescript 5.9.0-dev.20250610 → 5.9.0-dev.20250612
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.
- package/lib/_tsc.js +1 -1
- package/lib/cs/diagnosticMessages.generated.json +15 -0
- package/lib/de/diagnosticMessages.generated.json +15 -0
- package/lib/es/diagnosticMessages.generated.json +15 -0
- package/lib/fr/diagnosticMessages.generated.json +15 -0
- package/lib/it/diagnosticMessages.generated.json +15 -0
- package/lib/ja/diagnosticMessages.generated.json +15 -0
- package/lib/ko/diagnosticMessages.generated.json +15 -0
- package/lib/pl/diagnosticMessages.generated.json +15 -0
- package/lib/pt-br/diagnosticMessages.generated.json +15 -0
- package/lib/ru/diagnosticMessages.generated.json +15 -0
- package/lib/tr/diagnosticMessages.generated.json +15 -0
- package/lib/typescript.js +1 -1
- package/lib/zh-cn/diagnosticMessages.generated.json +15 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +15 -0
- package/package.json +2 -2
@@ -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": "刪除所有未使用的匯入",
|
@@ -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} 個錯誤。",
|
@@ -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": "所產生之宣告檔案的輸出目錄。",
|
@@ -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 語言版本,並包含相容的程式庫宣告。",
|
@@ -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}'。",
|
@@ -1947,6 +1958,7 @@
|
|
1947
1958
|
"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610": "'{0}' 在類別 '{1}' 中定義為存取子,但在此處的 '{2}' 中卻覆寫為執行個體屬性。",
|
1948
1959
|
"_0_is_deprecated_6385": "'{0}' 已淘汰。",
|
1949
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'?",
|
1950
1962
|
"_0_is_not_allowed_as_a_parameter_name_1390": "不允許 '{0}' 做為參數名稱。",
|
1951
1963
|
"_0_is_not_allowed_as_a_variable_declaration_name_1389": "'{0}' 不能是變數宣告名稱。",
|
1952
1964
|
"_0_is_of_type_unknown_18046": "'{0}' 的類型為 'unknown'。",
|
@@ -1998,6 +2010,7 @@
|
|
1998
2010
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾元只能出現在類別宣告、方法宣告或屬性宣告。",
|
1999
2011
|
"accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾詞只能出現在屬性宣告。",
|
2000
2012
|
"and_here_6204": "及此處。",
|
2013
|
+
"and_npm_install_D_types_Slashnode_6290": "和 npm 安裝 -D @types/node",
|
2001
2014
|
"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "在屬性初始化器或類別靜態初始化區塊中無法引用『arguments』。",
|
2002
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+) 作為模組。",
|
2003
2016
|
"await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 運算式無法在類別靜態區塊內使用。",
|
@@ -2005,6 +2018,7 @@
|
|
2005
2018
|
"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "只允許在非同步函式中與模組的最上層使用 'await' 運算式。",
|
2006
2019
|
"await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 運算式不得用於參數初始設定式。",
|
2007
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' 宣告。",
|
2008
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 {}',讓此檔案成為模組。",
|
2009
2023
|
"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' 陳述式僅能在非同步函式內,以及模組的最上層使用。",
|
2010
2024
|
"await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' 陳述式無法在類別靜態區塊內使用。",
|
@@ -2099,6 +2113,7 @@
|
|
2099
2113
|
"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333": "'unique symbol' 型別無法用在具有繫結名稱的變數宣告上。",
|
2100
2114
|
"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347": "'use strict' 指示詞不可搭配非簡易參數清單使用。",
|
2101
2115
|
"use_strict_directive_used_here_1349": "'use strict' 指示詞已用於此處。",
|
2116
|
+
"using_declarations_are_not_allowed_in_ambient_contexts_1545": "環境內容中不允許 'using' 宣告。",
|
2102
2117
|
"with_statements_are_not_allowed_in_an_async_function_block_1300": "非同步函式區塊中不允許 'with' 陳述式。",
|
2103
2118
|
"with_statements_are_not_allowed_in_strict_mode_1101": "不得在 strict 模式中使用 'with' 陳述式。",
|
2104
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.9.0-dev.
|
5
|
+
"version": "5.9.0-dev.20250612",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "dd1e258ba56f1b511879372c857fb625de3dec4a"
|
120
120
|
}
|