typescript 4.4.3 → 4.5.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.
- package/SECURITY.md +41 -0
- package/lib/cs/diagnosticMessages.generated.json +47 -59
- package/lib/de/diagnosticMessages.generated.json +50 -62
- package/lib/es/diagnosticMessages.generated.json +48 -60
- package/lib/fr/diagnosticMessages.generated.json +50 -62
- package/lib/it/diagnosticMessages.generated.json +50 -62
- package/lib/ja/diagnosticMessages.generated.json +50 -62
- package/lib/ko/diagnosticMessages.generated.json +47 -59
- package/lib/lib.dom.d.ts +669 -1896
- package/lib/lib.dom.iterable.d.ts +16 -48
- package/lib/lib.es2015.core.d.ts +53 -13
- package/lib/lib.es2015.iterable.d.ts +2 -10
- package/lib/lib.es2015.promise.d.ts +2 -74
- package/lib/lib.es2018.intl.d.ts +23 -11
- package/lib/lib.es2019.string.d.ts +8 -2
- package/lib/lib.es2020.intl.d.ts +173 -114
- package/lib/lib.es2020.promise.d.ts +2 -3
- package/lib/lib.es2021.d.ts +1 -0
- package/lib/lib.es2021.intl.d.ts +44 -0
- package/lib/lib.es2021.promise.d.ts +8 -1
- package/lib/lib.es5.d.ts +101 -41
- package/lib/lib.esnext.intl.d.ts +1 -10
- package/lib/lib.webworker.d.ts +183 -520
- package/lib/lib.webworker.iterable.d.ts +10 -30
- package/lib/pl/diagnosticMessages.generated.json +50 -62
- package/lib/protocol.d.ts +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +50 -62
- package/lib/ru/diagnosticMessages.generated.json +48 -60
- package/lib/tr/diagnosticMessages.generated.json +50 -62
- package/lib/tsc.js +7109 -5440
- package/lib/tsserver.js +11335 -8683
- package/lib/tsserverlibrary.d.ts +382 -273
- package/lib/tsserverlibrary.js +11335 -8683
- package/lib/typescript.d.ts +379 -271
- package/lib/typescript.js +11312 -8670
- package/lib/typescriptServices.d.ts +379 -271
- package/lib/typescriptServices.js +11312 -8670
- package/lib/typingsInstaller.js +8269 -6299
- package/lib/zh-cn/diagnosticMessages.generated.json +50 -62
- package/lib/zh-tw/diagnosticMessages.generated.json +50 -62
- package/package.json +5 -7
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ALL_COMPILER_OPTIONS_6917": "所有編譯器選項",
|
|
3
3
|
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 修飾元無法與匯入宣告並用。",
|
|
4
|
-
"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045": "'{0}' 修飾元無法與介面宣告並用。",
|
|
5
4
|
"A_0_parameter_must_be_the_first_parameter_2680": "'{0}' 參數必須為第一個參數。",
|
|
6
5
|
"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' 註解不能包含多個 '@type' 標籤。",
|
|
7
6
|
"A_bigint_literal_cannot_use_exponential_notation_1352": "Bigint 常值不可使用指數標記法。",
|
|
@@ -12,7 +11,6 @@
|
|
|
12
11
|
"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "類別只能實作具有選擇性型別引數的識別碼/限定名稱。",
|
|
13
12
|
"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "類別只能使用靜態已知成員來實作物件類型或物件類型的交集。",
|
|
14
13
|
"A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "不具 'default' 修飾元的類別宣告必須要有名稱。",
|
|
15
|
-
"A_class_may_only_extend_another_class_2311": "每個類別只可擴充另一個類別。",
|
|
16
14
|
"A_class_member_cannot_have_the_0_keyword_1248": "類別成員不能含有 '{0}' 關鍵字。",
|
|
17
15
|
"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "計算的屬性名稱中不可有逗點運算式。",
|
|
18
16
|
"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467": "計算的屬性名稱不得參考其包含類型中的型別參數。",
|
|
@@ -22,7 +20,6 @@
|
|
|
22
20
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "環境內容中的計算屬性名稱必須參考型別為常值型別或 'unique symbol' 型別的運算式。",
|
|
23
21
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "介面中的計算屬性名稱必須參考型別為常值型別或 'unique symbol' 型別的運算式。",
|
|
24
22
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "計算的屬性名稱必須是 'string'、'number'、'symbol' 或 'any' 類型。",
|
|
25
|
-
"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471": "格式為 '{0}' 之計算的屬性名稱必須是 'symbol' 類型。",
|
|
26
23
|
"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "'const' 判斷提示只可套用至列舉成員、字串、數字、布林值、陣列或物件常值的參考。",
|
|
27
24
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "若要存取常數列舉成員,必須透過字串常值。",
|
|
28
25
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "環境內容中的 'const' 初始設定式必須為字串、數字常值或常值列舉參考。",
|
|
@@ -66,7 +63,6 @@
|
|
|
66
63
|
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "無法使用剩餘參數宣告參數屬性。",
|
|
67
64
|
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "建構函式實作中只可有一個參數屬性。",
|
|
68
65
|
"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "無法使用繫結模式宣告參數屬性。",
|
|
69
|
-
"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001": "[擴充] 選項中的路徑必須為相對或根路徑,但 '{0}' 並不是。",
|
|
70
66
|
"A_promise_must_have_a_then_method_1059": "Promise 必須有 'then' 方法。",
|
|
71
67
|
"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "類型為 'unique symbol' 類型的類別屬性,必須為 'static' 和 'readonly'。",
|
|
72
68
|
"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "類型為 'unique symbol' 類型之介面或常值型別的屬性,必須是 'readonly'。",
|
|
@@ -91,7 +87,6 @@
|
|
|
91
87
|
"A_set_accessor_cannot_have_rest_parameter_1053": "'set' 存取子不得有剩餘參數。",
|
|
92
88
|
"A_set_accessor_must_have_exactly_one_parameter_1049": "'set' 存取子只可有一個參數。",
|
|
93
89
|
"A_set_accessor_parameter_cannot_have_an_initializer_1052": "'set' 存取子參數不得有初始設定式。",
|
|
94
|
-
"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381": "包含實作的簽章不得使用字串常值類型。",
|
|
95
90
|
"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "擴張引數必須具有元組類型或傳遞給 REST 參數。",
|
|
96
91
|
"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376": "當類別包含已初始化的屬性、參數屬性或私人識別碼時,'super' 呼叫必須為建構函式中的第一個陳述式。",
|
|
97
92
|
"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "以 'this' 為基礎的類型成立條件,和以參數為基礎的類型成立條件不相容。",
|
|
@@ -117,6 +112,7 @@
|
|
|
117
112
|
"Add_0_to_unresolved_variable_90008": "對未解析的變數新增 '{0}.'",
|
|
118
113
|
"Add_a_return_statement_95111": "新增 return 陳述式",
|
|
119
114
|
"Add_all_missing_async_modifiers_95041": "新增缺少的所有 'async' 修飾元",
|
|
115
|
+
"Add_all_missing_attributes_95168": "新增所有遺失的屬性",
|
|
120
116
|
"Add_all_missing_call_parentheses_95068": "新增所有缺少的呼叫括號",
|
|
121
117
|
"Add_all_missing_function_declarations_95157": "新增所有缺少的函式宣告",
|
|
122
118
|
"Add_all_missing_imports_95064": "新增所有缺少的匯入",
|
|
@@ -130,7 +126,6 @@
|
|
|
130
126
|
"Add_await_to_initializer_for_0_95084": "將 'await' 新增至 '{0}' 的初始設定式",
|
|
131
127
|
"Add_await_to_initializers_95089": "將 'await' 新增至初始設定式",
|
|
132
128
|
"Add_braces_to_arrow_function_95059": "將大括號新增至箭號函式",
|
|
133
|
-
"Add_class_tag_95102": "新增 '@class' 標籤",
|
|
134
129
|
"Add_const_to_all_unresolved_variables_95082": "將 'const' 新增至所有未解析的變數",
|
|
135
130
|
"Add_const_to_unresolved_variable_95081": "將 'const' 新增至未解析的變數",
|
|
136
131
|
"Add_default_import_0_to_existing_import_declaration_from_1_90033": "從 \"{1}\" 將預設匯入 '{0}' 新增至現有的匯入宣告",
|
|
@@ -140,6 +135,7 @@
|
|
|
140
135
|
"Add_index_signature_for_property_0_90017": "為屬性 '{0}' 新增索引簽章",
|
|
141
136
|
"Add_initializer_to_property_0_95019": "將初始設定式新增至屬性 '{0}'",
|
|
142
137
|
"Add_initializers_to_all_uninitialized_properties_95027": "為所有未初始化的屬性新增初始設定式",
|
|
138
|
+
"Add_missing_attributes_95167": "新增遺失的屬性",
|
|
143
139
|
"Add_missing_call_parentheses_95067": "新增缺少的呼叫括號",
|
|
144
140
|
"Add_missing_enum_member_0_95063": "新增缺少的列舉成員 '{0}'",
|
|
145
141
|
"Add_missing_function_declaration_0_95156": "新增缺少的函式宣告 '{0}'",
|
|
@@ -153,11 +149,10 @@
|
|
|
153
149
|
"Add_override_modifier_95160": "新增 'override' 修飾元",
|
|
154
150
|
"Add_parameter_name_90034": "新增參數名稱",
|
|
155
151
|
"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "對所有比對成員名稱的未解析變數新增限定詞",
|
|
156
|
-
"Add_this_parameter_95104": "新增 'this' 參數。",
|
|
157
|
-
"Add_this_tag_95103": "新增 '@this' 標籤",
|
|
158
152
|
"Add_to_all_uncalled_decorators_95044": "為所有未呼叫的裝飾項目新增 '()'",
|
|
159
153
|
"Add_ts_ignore_to_all_error_messages_95042": "為所有錯誤訊息新增 '@ts-ignore'",
|
|
160
154
|
"Add_undefined_to_a_type_when_accessed_using_an_index_6674": "使用索引進行存取時,將 `undefined` 新增至類型。",
|
|
155
|
+
"Add_undefined_to_optional_property_type_95169": "將 'undefined' 新增至選擇性屬性類型",
|
|
161
156
|
"Add_undefined_type_to_all_uninitialized_properties_95029": "為所有未初始化的屬性新增未定義的類型",
|
|
162
157
|
"Add_undefined_type_to_property_0_95018": "將 'undefined' 類型新增至屬性 '{0}'",
|
|
163
158
|
"Add_unknown_conversion_for_non_overlapping_types_95069": "新增非重疊類型的 'unknown' 轉換",
|
|
@@ -192,7 +187,6 @@
|
|
|
192
187
|
"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "算術運算元必須屬於 'any'、'number'、'bigint' 或列舉類型。",
|
|
193
188
|
"An_arrow_function_cannot_have_a_this_parameter_2730": "箭號函式不可具有 'this' 參數。",
|
|
194
189
|
"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 中的非同步函式或方法需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 '--lib' 選項中包括 'ES2015'。",
|
|
195
|
-
"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057": "非同步函式或方法必須包含有效可等候的傳回型別。",
|
|
196
190
|
"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "非同步函式或方法必須傳回 'Promise'。請確定您有 'Promise' 的宣告或在 '--lib' 選項中包括 'ES2015'。",
|
|
197
191
|
"An_async_iterator_must_have_a_next_method_2519": "非同步迭代器必須有 'next()' 方法。",
|
|
198
192
|
"An_element_access_expression_should_take_an_argument_1011": "項目存取運算式應接受一個引數。",
|
|
@@ -216,7 +210,6 @@
|
|
|
216
210
|
"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232": "匯入宣告只可用於命名空間或模組中。",
|
|
217
211
|
"An_import_declaration_cannot_have_modifiers_1191": "匯入宣告不得有修飾元。",
|
|
218
212
|
"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "匯入路徑的結尾不得為 '{0}' 副檔名。請考慮改為匯入 '{1}'。",
|
|
219
|
-
"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342": "索引運算式引數必須是 'string'、'number'、'symbol' 或 'any' 類型。",
|
|
220
213
|
"An_index_signature_cannot_have_a_rest_parameter_1017": "索引簽章不得有剩餘參數。",
|
|
221
214
|
"An_index_signature_cannot_have_a_trailing_comma_1025": "索引簽章結尾不可有逗號。",
|
|
222
215
|
"An_index_signature_must_have_a_type_annotation_1021": "索引簽章必須有類型註釋。",
|
|
@@ -243,12 +236,13 @@
|
|
|
243
236
|
"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "乘冪運算式左邊不允許具 '{0}' 運算子的一元運算式。請考慮以括弧括住運算式。",
|
|
244
237
|
"Annotate_everything_with_types_from_JSDoc_95043": "標註具備 JSDoc 之類型的所有項目 ",
|
|
245
238
|
"Annotate_with_type_from_JSDoc_95009": "為來自 JSDoc 的類型標註",
|
|
246
|
-
"Annotate_with_types_from_JSDoc_95010": "為來自 JSDoc 的類型標註",
|
|
247
239
|
"Another_export_default_is_here_2753": "其他匯出預設位於此處。",
|
|
248
240
|
"Are_you_missing_a_semicolon_2734": "缺少分號嗎?",
|
|
249
241
|
"Argument_expression_expected_1135": "必須是引數運算式。",
|
|
250
242
|
"Argument_for_0_option_must_be_Colon_1_6046": "'{0}' 選項的引數必須是: {1}。",
|
|
243
|
+
"Argument_of_dynamic_import_cannot_be_spread_element_1325": "動態匯入的引數不能是擴張元素。",
|
|
251
244
|
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "類型 '{0}' 的引數不可指派給類型 '{1}' 的參數。",
|
|
245
|
+
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "類型 '{0}' 的引數無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}' 的參數。請考慮將 'undefined' 新增到目標屬性的類型。",
|
|
252
246
|
"Arguments_for_the_rest_parameter_0_were_not_provided_6236": "未提供其餘參數 '{0}' 的引數。",
|
|
253
247
|
"Array_element_destructuring_pattern_expected_1181": "必須是陣列項目解構模式。",
|
|
254
248
|
"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "判斷提示要求必須以明確的型別註解宣告呼叫目標中的每個名稱。",
|
|
@@ -383,8 +377,8 @@
|
|
|
383
377
|
"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "當目標為具有模組 {0} 的 ES5 時,類別名稱不可為 'Object'。",
|
|
384
378
|
"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "類別靜態端 '{0}' 不正確地擴充基底類別靜態端 '{1}'。",
|
|
385
379
|
"Classes_can_only_extend_a_single_class_1174": "類別只能擴充一個類別。",
|
|
386
|
-
"Classes_containing_abstract_methods_must_be_marked_abstract_2514": "包含抽象方法的類別必須標記為抽象。",
|
|
387
380
|
"Classes_may_not_have_a_field_named_constructor_18006": "類別不能具有名為 'constructor' 的欄位。",
|
|
381
|
+
"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210": "會使用 JavaScript 的嚴格模式,評估包含在類別中的程式碼,其中不允許使用 '{0}'。如需詳細資訊,請參閱 https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Strict_mode。",
|
|
388
382
|
"Command_line_Options_6171": "命令列選項",
|
|
389
383
|
"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "當路徑為專案組態檔或為 'tsconfig.json' 所在的資料夾時編譯專案。",
|
|
390
384
|
"Compiler_Diagnostics_6251": "編譯器診斷",
|
|
@@ -393,9 +387,9 @@
|
|
|
393
387
|
"Compiler_option_0_may_only_be_used_with_build_5093": "編譯器選項 '--{0}' 只能與 '--build' 一起使用。",
|
|
394
388
|
"Compiler_option_0_requires_a_value_of_type_1_5024": "編譯器選項 '{0}' 需要類型 {1} 的值。",
|
|
395
389
|
"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "降級發出私人識別碼時,編譯器會保留名稱 '{0}'。",
|
|
396
|
-
"Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "編譯位於指定路徑的 TypeScript
|
|
390
|
+
"Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "編譯位於指定路徑的 TypeScript 專案。",
|
|
397
391
|
"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923": "編譯目前的專案 (工作目錄中的 tsconfig.json)。",
|
|
398
|
-
"Compiles_the_current_project_with_additional_settings_6929": "
|
|
392
|
+
"Compiles_the_current_project_with_additional_settings_6929": "使用其他設定編譯目前的專案。",
|
|
399
393
|
"Completeness_6257": "完整性",
|
|
400
394
|
"Composite_projects_may_not_disable_declaration_emit_6304": "複合式專案可能未停用宣告發出。",
|
|
401
395
|
"Composite_projects_may_not_disable_incremental_compilation_6379": "複合專案可能不會停用累加編譯。",
|
|
@@ -432,7 +426,6 @@
|
|
|
432
426
|
"Convert_arrow_function_or_function_expression_95122": "轉換箭頭函式或函式運算式",
|
|
433
427
|
"Convert_const_to_let_95093": "將 'const' 轉換為 'let'",
|
|
434
428
|
"Convert_default_export_to_named_export_95061": "將預設匯出轉換為具名匯出",
|
|
435
|
-
"Convert_function_0_to_class_95002": "將函式 '{0}' 轉換為類別",
|
|
436
429
|
"Convert_function_declaration_0_to_arrow_function_95106": "將函式宣告 '{0}' 轉換為箭號函式",
|
|
437
430
|
"Convert_function_expression_0_to_arrow_function_95105": "將函式運算式 '{0}' 轉換為箭號函式",
|
|
438
431
|
"Convert_function_to_an_ES2015_class_95001": "將函式轉換為 ES2015 類別",
|
|
@@ -510,16 +503,16 @@
|
|
|
510
503
|
"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "您是要將 '{0}' 限制為類型 'new (...args: any[]) => {1}' 嗎?",
|
|
511
504
|
"Did_you_mean_to_call_this_expression_6212": "您是要呼叫此運算式嗎?",
|
|
512
505
|
"Did_you_mean_to_mark_this_function_as_async_1356": "您是要將此函式標記為 'async' 嗎?",
|
|
513
|
-
"Did_you_mean_to_parenthesize_this_function_type_1360": "您是要為此函式類型加上括號?",
|
|
514
506
|
"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312": "要使用 ':' 嗎? 當包含的物件常值是解構模式的一部分時,'=' 就只能位於屬性名稱後面。",
|
|
515
507
|
"Did_you_mean_to_use_new_with_this_expression_6213": "您是要對此運算式使用 'new' 嗎?",
|
|
516
508
|
"Digit_expected_1124": "必須是數字。",
|
|
517
509
|
"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148": "目錄 '{0}' 不存在,將會跳過其中所有查閱。",
|
|
510
|
+
"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270": "目錄 '{0}' 不包含在 package.js 範圍內。將不會解析匯入。",
|
|
518
511
|
"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "停用在發出的 JavaScript 檔案中新增 'use strict' 指示詞。",
|
|
519
512
|
"Disable_checking_for_this_file_90018": "停用此檔案的檢查",
|
|
520
513
|
"Disable_emitting_comments_6688": "停用發出註解。",
|
|
521
514
|
"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "停用其 JSDoc 註解中具有 `@internal` 的發出宣告。",
|
|
522
|
-
"
|
|
515
|
+
"Disable_emitting_files_from_a_compilation_6660": "停用從編譯發出檔案。",
|
|
523
516
|
"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "如果報告任何型別檢查錯誤,則停用發出的檔案。",
|
|
524
517
|
"Disable_erasing_const_enum_declarations_in_generated_code_6682": "停用在產生的程式碼中抹除 `const enum` 宣告。",
|
|
525
518
|
"Disable_error_reporting_for_unreachable_code_6603": "停用無法執行到的程式碼錯誤報告。",
|
|
@@ -562,15 +555,15 @@
|
|
|
562
555
|
"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804": "重複的識別碼 '{0}'。靜態與執行個體元素不得共用相同的私人名稱。",
|
|
563
556
|
"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396": "識別碼 'arguments'' 重複。編譯器會使用 'arguments' 來初始化剩餘參數。",
|
|
564
557
|
"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543": "識別碼 '_newTarget' 重複。編譯器使用變數宣告 '_newTarget' 擷取 'new.target' 中繼屬性參考。",
|
|
565
|
-
"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401": "識別碼 '_super' 重複。編譯器會使用 '_super' 來擷取基底類別參考。",
|
|
566
558
|
"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399": "識別碼 '_this' 重複。編譯器會使用變數宣告 '_this' 來擷取 'this' 參考。",
|
|
567
559
|
"Duplicate_index_signature_for_type_0_2374": "類型 '{0}' 的索引簽章重複。",
|
|
568
560
|
"Duplicate_label_0_1114": "標籤 '{0}' 重複。",
|
|
569
561
|
"Duplicate_property_0_2718": "屬性 '{0}' 重複。",
|
|
570
562
|
"Dynamic_import_cannot_have_type_arguments_1326": "動態匯入不可有型別引數。",
|
|
571
|
-
"Dynamic_import_must_have_one_specifier_as_an_argument_1324": "動態匯入必須有一個指定名稱作為引數。",
|
|
572
563
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。",
|
|
573
|
-
"
|
|
564
|
+
"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'、'node12' 或 'nodenext',才支援動態匯入。",
|
|
565
|
+
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動態匯入只能接受模組指定名稱和選擇性判斷提示來做為引數",
|
|
566
|
+
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324": "當 '--module' 選項設定為 'esnext' 時,動態匯入只支援第二個引數。",
|
|
574
567
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "等位型別 '{0}' 的每個成員都有建構簽章,但這些簽章都互不相容。",
|
|
575
568
|
"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "等位型別 '{0}' 的每個成員都有簽章,但這些簽章都互不相容。",
|
|
576
569
|
"Editor_Support_6249": "編輯器支援",
|
|
@@ -589,7 +582,7 @@
|
|
|
589
582
|
"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "針對反覆項目發出更符合規範,但具詳細資訊及較低效能 JavaScript。",
|
|
590
583
|
"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "使用單一檔案發出來源與來源對應。必須設定 '--inlineSourceMap' 或 '--sourceMap'。",
|
|
591
584
|
"Enable_all_strict_type_checking_options_6180": "啟用所有 Strict 類型檢查選項。",
|
|
592
|
-
"
|
|
585
|
+
"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "在 TypeScript 的輸出中啟用色彩及格式化,讓編譯器錯誤更容易閱讀",
|
|
593
586
|
"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "啟用允許 TypeScript 專案搭配專案參考使用的條件約束。",
|
|
594
587
|
"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "啟用未在函式中明確傳回之 codepaths 的錯誤報吿。",
|
|
595
588
|
"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "啟用具有隱含 `any` 類型的運算式及宣告之錯誤報告。",
|
|
@@ -610,7 +603,6 @@
|
|
|
610
603
|
"Enable_tracing_of_the_name_resolution_process_6085": "啟用名稱解析流程的追蹤。",
|
|
611
604
|
"Enable_verbose_logging_6713": "啟用詳細資訊記錄",
|
|
612
605
|
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "透過為所有匯入建立命名空間物件,讓 CommonJS 和 ES 模組之間的產出有互通性。意指 'allowSyntheticDefaultImports'。",
|
|
613
|
-
"Enables_experimental_support_for_ES7_async_functions_6068": "啟用 ES7 非同步函式的實驗支援。",
|
|
614
606
|
"Enables_experimental_support_for_ES7_decorators_6065": "啟用 ES7 裝飾項目的實驗支援。",
|
|
615
607
|
"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "啟用實驗支援以發出裝飾項目類型的中繼資料。",
|
|
616
608
|
"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "對使用索引型別宣告的索引鍵強制使用索引存取子",
|
|
@@ -628,7 +620,6 @@
|
|
|
628
620
|
"Enum_member_expected_1132": "必須是列舉成員。",
|
|
629
621
|
"Enum_member_must_have_initializer_1061": "列舉成員必須有初始設定式。",
|
|
630
622
|
"Enum_name_cannot_be_0_2431": "列舉名稱不得為 '{0}'。",
|
|
631
|
-
"Enum_type_0_circularly_references_itself_2586": "列舉類型 '{0}' 會循環參考自身。",
|
|
632
623
|
"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "列舉類型 '{0}' 有初始設定式非常值的成員。",
|
|
633
624
|
"Examples_Colon_0_6026": "範例: {0}",
|
|
634
625
|
"Excessive_stack_depth_comparing_types_0_and_1_2321": "比較類型 '{0}' 與 '{1}' 的堆疊深度過深。",
|
|
@@ -649,8 +640,7 @@
|
|
|
649
640
|
"Export_assignment_is_not_supported_when_module_flag_is_system_1218": "當 '--module' 旗標為 'system' 時,不支援匯出指派。",
|
|
650
641
|
"Export_declaration_conflicts_with_exported_declaration_of_0_2484": "匯出宣告與匯出的 '{0}' 宣告相衝突。",
|
|
651
642
|
"Export_declarations_are_not_permitted_in_a_namespace_1194": "在命名空間中不可使用匯出宣告。",
|
|
652
|
-
"
|
|
653
|
-
"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654": "匯出的外部封裝類型檔案不得包含三斜線的參考。請連絡封裝作者以更新封裝定義。",
|
|
643
|
+
"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "在路徑 '{0}' 的 package.js 範圍中不存在匯出指定名稱 '{1}'。",
|
|
654
644
|
"Exported_type_alias_0_has_or_is_using_private_name_1_4081": "匯出的類型別名 '{0}' 具有或使用私用名稱 '{1}'。",
|
|
655
645
|
"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "匯出的類型別名 '{0}' 具有或使用模組 {2} 中的私人名稱 '{1}'。",
|
|
656
646
|
"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "匯出的變數 '{0}' 具有或使用外部模組 {2} 中的名稱 '{1}',但無法命名。",
|
|
@@ -662,7 +652,6 @@
|
|
|
662
652
|
"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "運算式產生的元組類型太大而無法表示。",
|
|
663
653
|
"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "運算式產生的等位型別過於複雜而無法表示。",
|
|
664
654
|
"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "運算式會解析成 '_super',而編譯器會使用其來擷取基底類別參考。",
|
|
665
|
-
"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521": "運算式會解析成變數宣告 '{0}',而編譯器會使用此宣告支援非同步函式。",
|
|
666
655
|
"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "運算式將解析成變數宣告 '_newTarget',而供編譯器用來擷取 'new.target' 中繼屬性參考。",
|
|
667
656
|
"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "運算式會解析成變數宣告 '_this',而編譯器會使用此宣告來擷取 'this' 參考 。",
|
|
668
657
|
"Extract_constant_95006": "擷取常數",
|
|
@@ -745,7 +734,6 @@
|
|
|
745
734
|
"Generates_corresponding_map_file_6043": "產生對應的 '.map' 檔案。",
|
|
746
735
|
"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "因為產生器未產生任何值,所以其隱含產生類型 '{0}'。請考慮提供傳回型別註解。",
|
|
747
736
|
"Generators_are_not_allowed_in_an_ambient_context_1221": "環境內容中不允許產生器。",
|
|
748
|
-
"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220": "只有在目標為 ECMAScript 2015 或更高版本時,才可使用產生器。",
|
|
749
737
|
"Generic_type_0_requires_1_type_argument_s_2314": "泛型類型 '{0}' 需要 {1} 個型別引數。",
|
|
750
738
|
"Generic_type_0_requires_between_1_and_2_type_arguments_2707": "泛型型別 '{0}' 需要介於 {1} 和 {2} 之間的型別引數。",
|
|
751
739
|
"Global_module_exports_may_only_appear_at_top_level_1316": "全域模組匯出只能顯示在最上層。",
|
|
@@ -764,8 +752,9 @@
|
|
|
764
752
|
"Identifier_expected_1003": "必須是識別碼。",
|
|
765
753
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "必須有識別碼。'__esModule' 已保留為轉換 ECMAScript 模組時匯出的標記。",
|
|
766
754
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "如果「{0}」套件實際上公開了此模組,請考慮傳送提取要求以修改 「https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}」",
|
|
755
|
+
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "如果 '{0}' 套件的確公開了此模組,請嘗試新增包含 `declare module '{1}';` 的宣告 (.d.ts) 檔案。",
|
|
767
756
|
"Ignore_this_error_message_90019": "略過此錯誤訊息",
|
|
768
|
-
"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "忽略 tsconfig.json
|
|
757
|
+
"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924": "忽略 tsconfig.json,使用預設編譯器選項編譯指定的檔案。",
|
|
769
758
|
"Implement_all_inherited_abstract_classes_95040": "實作所有繼承的抽象類別",
|
|
770
759
|
"Implement_all_unimplemented_interfaces_95032": "實作所有未實作的介面",
|
|
771
760
|
"Implement_inherited_abstract_class_90007": "實作已繼承的抽象類別",
|
|
@@ -773,6 +762,8 @@
|
|
|
773
762
|
"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "匯出類別 '{0}' 的 Implements 子句具有或使用私用名稱 '{1}'。",
|
|
774
763
|
"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "在執行階段中無法將 'symbol' 隱含轉換為 'string'。請考慮將此運算式包裝在 'String(...)' 中。",
|
|
775
764
|
"Import_0_from_module_1_90013": "從模組 \"{1}\" 匯入 '{0}'",
|
|
765
|
+
"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821": "只有當 '--module' 選項設定為 'esnext' 時,才支援匯入判斷提示。",
|
|
766
|
+
"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "匯入判斷提示不能與僅限類型的匯入或匯出搭配使用。",
|
|
776
767
|
"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\"' 或其他模組格式。",
|
|
777
768
|
"Import_declaration_0_is_using_private_name_1_4000": "匯入宣告 '{0}' 使用私用名稱 '{1}'。",
|
|
778
769
|
"Import_declaration_conflicts_with_local_declaration_of_0_2440": "匯入宣告與 '{0}' 的區域宣告衝突。",
|
|
@@ -782,6 +773,7 @@
|
|
|
782
773
|
"Import_may_be_converted_to_a_default_import_80003": "匯入可轉換成預設匯入。",
|
|
783
774
|
"Import_name_cannot_be_0_2438": "匯入名稱不得為 '{0}'。",
|
|
784
775
|
"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439": "環境模組宣告中的匯入或匯出宣告,不得透過相對模組名稱參考模組。",
|
|
776
|
+
"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271": "在路徑 '{0}' 的 package.js 範圍中不存在匯入指定名稱 '{1}'。",
|
|
785
777
|
"Imported_via_0_from_file_1_1393": "透過 {0} 從檔案 '{1}' 匯入",
|
|
786
778
|
"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "透過 {0} 從檔案 '{1}' 匯入,以 CompilerOptions 指定的方式匯入 'ImportHelpers'",
|
|
787
779
|
"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "透過 {0} 從檔案 '{1}' 匯入,匯入 'jsx' 和 'jsxs' 處理站函式",
|
|
@@ -823,10 +815,10 @@
|
|
|
823
815
|
"Interop_Constraints_6252": "Interop 條件約束",
|
|
824
816
|
"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "將選用屬性類型解譯為寫入,而非新增 'undefined'。",
|
|
825
817
|
"Invalid_character_1127": "無效的字元。",
|
|
818
|
+
"Invalid_import_specifier_0_has_no_possible_resolutions_6272": "無效的匯入指定名稱 '{0}' 沒有可能的解決方法。",
|
|
826
819
|
"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "增強中的模組名稱無效。模組 '{0}' 於 '{1}' 解析至不具類型的模組,其無法擴增。",
|
|
827
820
|
"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "增強指定中的模組名稱無效,找不到模組 '{0}'。",
|
|
828
821
|
"Invalid_reference_directive_syntax_1084": "無效的 'reference' 指示詞語法。",
|
|
829
|
-
"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210": "不當使用 '{0}'。類別定義會自動採用 strict 模式。",
|
|
830
822
|
"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}' 的使用無效。不能在類別靜態區塊內使用。",
|
|
831
823
|
"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}' 的用法無效。模組會自動採用 strict 模式。",
|
|
832
824
|
"Invalid_use_of_0_in_strict_mode_1100": "在 strict 模式中使用 '{0}' 無效。",
|
|
@@ -842,19 +834,15 @@
|
|
|
842
834
|
"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' 只能出現在特徵標記的最後一個參數中。",
|
|
843
835
|
"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' 標記的名稱為 '{0}',但沒有為該名稱的參數。",
|
|
844
836
|
"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' 標籤的名稱為 '{0}',但沒有任何參數使用該名稱。如有陣列類型,則會與 'arguments' 相符。",
|
|
845
|
-
"JSDoc_type_0_circularly_references_itself_2587": "JSDoc 類型 '{0}' 會循環參考自身。",
|
|
846
837
|
"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' 標記應具有類型註解,或者其後接著 '@property' 或 '@member' 標記。",
|
|
847
838
|
"JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc 類型只能在文件註解中使用。",
|
|
848
839
|
"JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc 類型可移為 TypeScript 類型。",
|
|
849
|
-
"JSX_attribute_expected_17003": "必須是 JSX 屬性。",
|
|
850
840
|
"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "只能將非空白的 'expression' 指派給 JSX 屬性。",
|
|
851
841
|
"JSX_element_0_has_no_corresponding_closing_tag_17008": "JSX 元素 '{0}' 沒有對應的結尾標記。",
|
|
852
|
-
"JSX_element_attributes_type_0_may_not_be_a_union_type_2600": "JSX 元素的屬性類型 '{0}' 不得為等位型別。",
|
|
853
842
|
"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607": "因為 JSX 項目類別沒有 '{0}' 屬性 (property),所以不支援屬性 (attribute)。",
|
|
854
843
|
"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026": "因為沒有介面 'JSX.{0}',表示 JSX 項目隱含了類型 'any'。",
|
|
855
844
|
"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602": "因為全域類型 'JSX.Element' 不存在,所以 JSX 項目隱含有類型 'any'。",
|
|
856
845
|
"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604": "JSX 項目類型 '{0}' 沒有任何建構或呼叫簽章。",
|
|
857
|
-
"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605": "JSX 項目類型 '{0}' 不是 JSX 項目的建構函式。",
|
|
858
846
|
"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001": "JSX 項目不得有多個同名的屬性。",
|
|
859
847
|
"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007": "JSX 運算式不可使用逗號運算子。您是要寫入陣列嗎?",
|
|
860
848
|
"JSX_expressions_must_have_one_parent_element_2657": "JSX 運算式必須具有一個父元素。",
|
|
@@ -867,7 +855,6 @@
|
|
|
867
855
|
"Keywords_cannot_contain_escape_characters_1260": "關鍵字不可包含逸出字元。",
|
|
868
856
|
"LOCATION_6037": "位置",
|
|
869
857
|
"Language_and_Environment_6254": "語言及環境",
|
|
870
|
-
"Language_service_is_disabled_9004": "已停用語言服務。",
|
|
871
858
|
"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695": "逗號運算子左側未使用,而且沒有任何不良影響。",
|
|
872
859
|
"Library_0_specified_in_compilerOptions_1422": "CompilerOptions 中指定的程式庫 '{0}'",
|
|
873
860
|
"Library_referenced_via_0_from_file_1_1405": "透過 '{0}' 從檔案 '{1}' 參考的程式庫",
|
|
@@ -899,6 +886,7 @@
|
|
|
899
886
|
"Method_not_implemented_95158": "未實作方法。",
|
|
900
887
|
"Modifiers_cannot_appear_here_1184": "此處不得出現修飾元。",
|
|
901
888
|
"Module_0_can_only_be_default_imported_using_the_1_flag_1259": "模組 '{0}' 只能依預設使用 '{1}' 旗標匯入",
|
|
889
|
+
"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471": "無法使用此構造匯入模組 '{0}'。指定名稱只能解析成無法同步匯入的 ES 模組。請改為使用動態匯入。",
|
|
902
890
|
"Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "模組 '{0}' 區域性地宣告 '{1}',但卻將該模組匯出為 '{2}'。",
|
|
903
891
|
"Module_0_declares_1_locally_but_it_is_not_exported_2459": "模組 '{0}' 區域性地宣告 '{1}',但並未匯出該模組。",
|
|
904
892
|
"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340": "模組 '{0}' 不是類型,但在此處卻作為類型使用。您是指 'typeof import('{0}')' 嗎?",
|
|
@@ -971,7 +959,6 @@
|
|
|
971
959
|
"Only_ambient_modules_can_use_quoted_names_1035": "只有環境模組可以使用括以引號的名稱。",
|
|
972
960
|
"Only_amd_and_system_modules_are_supported_alongside_0_6082": "只有 'amd' 與 'system' 模組連同受支援 --{0}。",
|
|
973
961
|
"Only_emit_d_ts_declaration_files_6014": "只發出 '.d.ts' 宣告檔案。",
|
|
974
|
-
"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002": "類別 'extends' 子句中,目前只支援具有選擇性型別引數的識別碼/限定名稱。",
|
|
975
962
|
"Only_named_exports_may_use_export_type_1383": "只有具名的匯出可以使用 'export type'。",
|
|
976
963
|
"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "只有數值列舉才可以有計算成員,但此運算式的類型為 '{0}'。若您不需要詳細檢查,請考慮改用物件常值。",
|
|
977
964
|
"Only_output_d_ts_files_and_not_JavaScript_files_6623": "只輸出 d.ts 檔案,而不是 JavaScript 檔案。",
|
|
@@ -987,11 +974,11 @@
|
|
|
987
974
|
"Option_0_cannot_be_specified_with_option_1_5053": "不得同時指定選項 '{0}' 與選項 '{1}'。",
|
|
988
975
|
"Option_0_cannot_be_specified_without_specifying_option_1_5052": "必須指定選項 '{1}' 才可指定選項 '{0}'。",
|
|
989
976
|
"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "指定選項 '{0}' 時,必須指定選項 '{1}' 或選項 '{2}'。",
|
|
990
|
-
"Option_0_should_have_array_of_strings_as_a_value_6103": "選項 '{0}' 應以字串陣列作為值。",
|
|
991
977
|
"Option_build_must_be_the_first_command_line_argument_6369": "選項 '--build' 必須是第一個命令列引數。",
|
|
992
978
|
"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "只有在使用 tsconfig、發出至單一檔案,或指定 '--tsBuildInfoFile' 選項時,才可指定 '--incremental'選項。",
|
|
993
979
|
"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "只有在提供選項 '--module' 或是 'target' 為 'ES2015' 或更高項目時,才可使用選項 'isolatedModules'。",
|
|
994
980
|
"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "啟用 'isolatedModules' 時,無法停用選項 'preserveConstEnums'。",
|
|
981
|
+
"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "只有當 'module' 設定為 'es2015' 或更高版本時,才能使用 'preserveValueImports' 選項。",
|
|
995
982
|
"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "在命令列上,'project' 選項不得與原始程式檔並用。",
|
|
996
983
|
"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "只有在模組程式碼產生為 'commonjs'、'amd'、'es2015' 或 'esNext' 時,才可指定選項 '--resolveJsonModule'。",
|
|
997
984
|
"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "指定選項 '-resolveJsonModule' 時,不可沒有 'node' 模組解析策略。",
|
|
@@ -1056,6 +1043,7 @@
|
|
|
1056
1043
|
"Prefix_all_incorrect_property_declarations_with_declare_95095": "在所有不正確屬性宣告的開頭放置 'declare'",
|
|
1057
1044
|
"Prefix_all_unused_declarations_with_where_possible_95025": "若可行,為所有未使用的宣告加上前置詞 '_'",
|
|
1058
1045
|
"Prefix_with_declare_95094": "以 'declare' 開頭",
|
|
1046
|
+
"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449": "保留 JavaScript 輸出中未使用的匯入值,否則將予以移除。",
|
|
1059
1047
|
"Print_all_of_the_files_read_during_the_compilation_6653": "列印在編譯期間讀取的所有檔案。",
|
|
1060
1048
|
"Print_files_read_during_the_compilation_including_why_it_was_included_6631": "列印在編譯期間讀取的檔案,包括其包含的原因。",
|
|
1061
1049
|
"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505": "列印檔案名稱,以及檔案屬於編譯的原因。",
|
|
@@ -1069,6 +1057,7 @@
|
|
|
1069
1057
|
"Private_accessor_was_defined_without_a_getter_2806": "私人存取子已在不使用 getter 的情況下定義。",
|
|
1070
1058
|
"Private_identifiers_are_not_allowed_in_variable_declarations_18029": "變數宣告中不允許私人識別碼。",
|
|
1071
1059
|
"Private_identifiers_are_not_allowed_outside_class_bodies_18016": "不允許私人識別碼位於類別主體外。",
|
|
1060
|
+
"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "私人識別碼只能在類別主體中使用,且只能做為類別成員宣告、屬性存取或 'in' 運算式左側的一部分使用",
|
|
1072
1061
|
"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "只有當目標為 ECMAScript 2015 及更新版本時,才可使用私人識別碼。",
|
|
1073
1062
|
"Private_identifiers_cannot_be_used_as_parameters_18009": "私人識別碼不可用作為參數。",
|
|
1074
1063
|
"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "無法在型別參數上存取私人或受保護的成員 '{0}'。",
|
|
@@ -1086,10 +1075,8 @@
|
|
|
1086
1075
|
"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "專案參考不會形成循環圖。但偵測到循環: {0}",
|
|
1087
1076
|
"Projects_6255": "專案",
|
|
1088
1077
|
"Projects_in_this_build_Colon_0_6355": "此組建中的專案: {0}",
|
|
1089
|
-
"Projects_to_reference_6300": "專案至參考",
|
|
1090
1078
|
"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "屬性 '{0}' 已標記為抽象,因此不得有初始設定式。",
|
|
1091
1079
|
"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "屬性 '{0}' 來自索引簽章,因此必須使用 ['{0}'] 存取。",
|
|
1092
|
-
"Property_0_does_not_exist_on_const_enum_1_2479": "'const' 列舉 '{1}' 上並沒有屬性 '{0}'。",
|
|
1093
1080
|
"Property_0_does_not_exist_on_type_1_2339": "類型 '{1}' 沒有屬性 '{0}'。",
|
|
1094
1081
|
"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "類型 '{1}' 沒有屬性 '{0}'。您指的是 '{2}' 嗎?",
|
|
1095
1082
|
"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576": "屬性 '{0}' 不存在於類型 '{1}' 上。您要存取的是靜態成員 '{2}' 嗎?",
|
|
@@ -1106,7 +1093,6 @@
|
|
|
1106
1093
|
"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015": "類型 '{1}' 中的屬性 '{0}' 是無法從類型 '{2}' 中存取的其他成員。",
|
|
1107
1094
|
"Property_0_is_declared_but_its_value_is_never_read_6138": "屬性 '{0}' 已宣告但從未讀取其值。",
|
|
1108
1095
|
"Property_0_is_incompatible_with_index_signature_2530": "屬性 '{0}' 和索引簽章不相容。",
|
|
1109
|
-
"Property_0_is_incompatible_with_rest_element_type_2573": "屬性 '{0}' 與其餘項目類型不相容。",
|
|
1110
1096
|
"Property_0_is_missing_in_type_1_2324": "類型 '{1}' 遺漏屬性 '{0}'。",
|
|
1111
1097
|
"Property_0_is_missing_in_type_1_but_required_in_type_2_2741": "類型 '{1}' 缺少屬性 '{0}',但類型 '{2}' 必須有該屬性。",
|
|
1112
1098
|
"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013": "因為屬性 '{0}' 具有私人識別碼,所以無法在類別 '{1}' 外存取該屬性。",
|
|
@@ -1133,7 +1119,6 @@
|
|
|
1133
1119
|
"Property_or_signature_expected_1131": "必須是屬性或簽章。",
|
|
1134
1120
|
"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "屬性值僅能為字串常值、數值常值、'true'、'false'、'null'、物件常值或陣列常值。",
|
|
1135
1121
|
"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "當目標為 'ES5' 或 'ES3' 時,為 'for-of'、擴張及解構提供完整的支援。",
|
|
1136
|
-
"Provides_a_root_package_name_when_using_outFile_with_declarations_1390": "使用 outFile 時若有宣告,請提供根套件名稱。",
|
|
1137
1122
|
"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "匯出類別的公用方法 '{0}' 具有或使用外部模組 {2} 的名稱 '{1}',但無法命名。",
|
|
1138
1123
|
"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "匯出類別的公用方法 '{0}' 具有或使用私用模組 '{2}' 的名稱 '{1}'。",
|
|
1139
1124
|
"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "匯出類別的公用方法 '{0}' 具有或使用私用名稱 '{1}'。",
|
|
@@ -1192,7 +1177,6 @@
|
|
|
1192
1177
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "從位置 '{1}' 的快取中找到模組 '{0}' 的解析。",
|
|
1193
1178
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "從位置 '{0}' 的快取記憶體找到類型參照指示詞 '{1}'。",
|
|
1194
1179
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只將 'keyof' 解析為字串值的屬性名稱 (無任何數字或符號)。",
|
|
1195
|
-
"Resolving_from_node_modules_folder_6118": "正在從 node_modules 資料夾解析...",
|
|
1196
1180
|
"Resolving_module_0_from_1_6086": "======== 正在從 '{1}' 解析模組 '{0}'。========",
|
|
1197
1181
|
"Resolving_module_name_0_relative_to_base_url_1_2_6094": "正在解析與基底 URL '{1}' 相對的模組名稱 '{0}' - '{2}'。",
|
|
1198
1182
|
"Resolving_real_path_for_0_result_1_6130": "正在解析 '{0}' 的真實路徑,結果 '{1}'。",
|
|
@@ -1201,11 +1185,9 @@
|
|
|
1201
1185
|
"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 正在解析類型參考指示詞 '{0}',包含檔案 '{1}',未設定根目錄。========",
|
|
1202
1186
|
"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 正在解析類型參考指示詞 '{0}',未設定包含檔案,根目錄 '{1}'。========",
|
|
1203
1187
|
"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 正在解析類型參考指示詞 '{0}',未設定包含檔案,未設定根目錄。 ========",
|
|
1204
|
-
"Resolving_using_primary_search_paths_6117": "正在使用主要搜尋路徑進行解析...",
|
|
1205
1188
|
"Resolving_with_primary_search_path_0_6121": "正在解析主要搜尋路徑 '{0}'。",
|
|
1206
1189
|
"Rest_parameter_0_implicitly_has_an_any_type_7019": "剩餘參數 '{0}' 隱含了 'any[]' 類型。",
|
|
1207
1190
|
"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "其餘參數 '{0}' 隱含 'any[]' 類型,但可從使用方式推斷更適合的類型。",
|
|
1208
|
-
"Rest_signatures_are_incompatible_2572": "其餘簽章不相容。",
|
|
1209
1191
|
"Rest_types_may_only_be_created_from_object_types_2700": "Rest 類型只能從物件類型建立。",
|
|
1210
1192
|
"Return_type_annotation_circularly_references_itself_2577": "傳回型別註解會循環參考自身。",
|
|
1211
1193
|
"Return_type_must_be_inferred_from_a_function_95149": "必須從函式推斷傳回型別",
|
|
@@ -1276,8 +1258,6 @@
|
|
|
1276
1258
|
"Source_has_0_element_s_but_target_requires_1_2618": "來源有 {0} 個元素,但目標需要 {1} 個。",
|
|
1277
1259
|
"Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "來源未針對目標中位於 {0} 的必要元素提供相符項目。",
|
|
1278
1260
|
"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "來源未針對目標中位於 {0} 的可變元素提供相符項目。",
|
|
1279
|
-
"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382": "特製化的多載簽章不可指派給任何非特製化的簽章。",
|
|
1280
|
-
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "動態匯入的指定名稱不能是展開元素。",
|
|
1281
1261
|
"Specify_ECMAScript_target_version_6015": "指定 ECMAScript 目標版本。",
|
|
1282
1262
|
"Specify_JSX_code_generation_6080": "指定 JSX 程式碼產生。",
|
|
1283
1263
|
"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "指定將所有輸出組合成一個 JavaScript 檔案的檔案。如果 `declaration` 為 True,則也會指定組合所有 .d.ts 輸出的檔案。",
|
|
@@ -1347,7 +1327,6 @@
|
|
|
1347
1327
|
"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "針對缺少索引簽章的索引物件隱藏 noImplicitAny 錯誤。",
|
|
1348
1328
|
"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "針對缺少索引簽章的物件編製索引時,隱藏 `noImplicitAny` 錯誤。",
|
|
1349
1329
|
"Switch_each_misused_0_to_1_95138": "將每個誤用的 '{0}' 切換成 '{1}'",
|
|
1350
|
-
"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470": "'Symbol' 參考不是參考全域 Symbol 建構函式物件。",
|
|
1351
1330
|
"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "在不支援原生遞迴監視之平台上,同步呼叫回呼並更新目錄監控程式的狀態。",
|
|
1352
1331
|
"Syntax_Colon_0_6023": "語法: {0}",
|
|
1353
1332
|
"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229": "標籤 '{0}' 至少需要 '{1}' 個引數,但 JSX factory '{2}' 最多只提供 '{3}' 個。",
|
|
@@ -1363,7 +1342,6 @@
|
|
|
1363
1342
|
"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "無法在 ES3 和 ES5 的箭號函式中參考 'arguments' 物件。請考慮使用標準函式運算式。",
|
|
1364
1343
|
"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "在 ES3 與 ES5 的非同步函式或方法中,無法參考 'arguments' 物件。請考慮使用標準函式或方法。",
|
|
1365
1344
|
"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' 陳述式的主體不能是空白陳述式。",
|
|
1366
|
-
"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391": "使用 outFile 及節點模組解析且發出宣告時,必須提供 `bundledPackageName` 選項。",
|
|
1367
1345
|
"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "對此實作的呼叫會成功,但多載的實作簽章未向外部顯示。",
|
|
1368
1346
|
"The_character_set_of_the_input_files_6163": "輸入檔的字元集。",
|
|
1369
1347
|
"The_containing_arrow_function_captures_the_global_value_of_this_7041": "包含的箭號函式會擷取 'this' 的全域值。",
|
|
@@ -1381,7 +1359,8 @@
|
|
|
1381
1359
|
"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Promise 的 'then' 方法第一個參數必須為回撥。",
|
|
1382
1360
|
"The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全域類型 'JSX.{0}' 的屬性不得超過一個。",
|
|
1383
1361
|
"The_implementation_signature_is_declared_here_2750": "實作簽章宣告於此處。",
|
|
1384
|
-
"
|
|
1362
|
+
"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "將會組建至 CommonJS 輸出的檔案中不允許 'import.meta' 中繼屬性。",
|
|
1363
|
+
"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、, 'node12' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。",
|
|
1385
1364
|
"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' 的推斷類型無法在沒有 '{1}' 參考的情況下命名。其可能非可攜式。必須有型別註解。",
|
|
1386
1365
|
"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' 的推斷型別參考了具有迴圈結構且不是可完整序列化的型別。必須有型別註解。",
|
|
1387
1366
|
"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' 的推斷型別參考了無法存取的 '{1}' 型別。必須有型別註解。",
|
|
@@ -1404,7 +1383,7 @@
|
|
|
1404
1383
|
"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術運算的左側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。",
|
|
1405
1384
|
"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "指派運算式的左側不可為選擇性屬性存取。",
|
|
1406
1385
|
"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "指派運算式的左邊必須是變數或屬性存取。",
|
|
1407
|
-
"
|
|
1386
|
+
"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "'in' 運算式的左側必須是私人識別碼或 'any'、'string'、'number' 或 'symbol' 類型。",
|
|
1408
1387
|
"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 運算式左側必須是類型 'any'、物件類型或型別參數。",
|
|
1409
1388
|
"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "對使用者顯示訊息時所使用的地區設定 (例如 'zh-tw')",
|
|
1410
1389
|
"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "在 node_modules 及載入 JavaScript 檔案下搜尋時的最大相依性深度。",
|
|
@@ -1416,7 +1395,6 @@
|
|
|
1416
1395
|
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "遞增或遞減運算子的運算元必須是變數或屬性存取。",
|
|
1417
1396
|
"The_parser_expected_to_find_a_to_match_the_token_here_1007": "剖析器需找到可與此處 '{' 語彙基元搭配的 '}'。",
|
|
1418
1397
|
"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "無法在此類別內的類型 '{1}' 上存取屬性 '{0}',原因是另一個拼字相同的私人識別碼已將其陰影。",
|
|
1419
|
-
"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601": "JSX 項目建構函式的傳回型別必須傳回物件類型。",
|
|
1420
1398
|
"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' 存取子的傳回型別必須可指派給其 'set' 存取子類型",
|
|
1421
1399
|
"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "參數裝飾項目函式的傳回型別必須是 'void' 或 'any'。",
|
|
1422
1400
|
"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "屬性裝飾項目函式的傳回型別必須是 'void' 或 'any'。",
|
|
@@ -1431,13 +1409,13 @@
|
|
|
1431
1409
|
"The_signature_0_of_1_is_deprecated_6387": "'{1}' 的特徵標記 '{0}' 已淘汰。",
|
|
1432
1410
|
"The_specified_path_does_not_exist_Colon_0_5058": "指定的路徑不存在: '{0}'。",
|
|
1433
1411
|
"The_tag_was_first_specified_here_8034": "此標籤第一次指定於此處。",
|
|
1434
|
-
"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541": "指派的目標必須是變數或屬性存取。",
|
|
1435
1412
|
"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778": "物件其餘指派的目標不可為選擇性屬性存取。",
|
|
1436
1413
|
"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701": "物件剩餘指派的目標必須為變數或屬性存取。",
|
|
1437
1414
|
"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684": "類型 '{0}' 的 'this' 內容無法指派給方法之類型 '{1}' 的 'this'。",
|
|
1438
1415
|
"The_this_types_of_each_signature_are_incompatible_2685": "各個簽章的 'this' 類型不相容。",
|
|
1439
1416
|
"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104": "類型 '{0}' 為 'readonly',因此無法指派給可變動的類型 '{1}'。",
|
|
1440
|
-
"
|
|
1417
|
+
"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "[類型修飾元] 無法在 [匯出類型]5D; 於其匯出陳述式上使用時,在命名的匯出上使用。",
|
|
1418
|
+
"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "[類型修飾元] 無法在 [匯入類型]5D; 於其匯入陳述式上使用時,在命名的匯入上使用。",
|
|
1441
1419
|
"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "函式宣告的類型必須與函式的簽章相符。",
|
|
1442
1420
|
"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "無法將此節點的類型序列化,因為無法將其屬性 '{0}' 序列化。",
|
|
1443
1421
|
"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "非同步迭代器 '{0}()' 方法所傳回的類型,對具有 'value' 屬性的類型必須為 Promise。",
|
|
@@ -1460,23 +1438,30 @@
|
|
|
1460
1438
|
"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "因為 'importsNotUsedAsValues' 設為 'error',所以永遠不會使用此匯入作為值,且必須使用 'import type'。",
|
|
1461
1439
|
"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "此宣告正在增加中。請考慮將正在增加的宣告移至相同的檔案中。",
|
|
1462
1440
|
"This_may_be_converted_to_an_async_function_80006": "這可以轉換為非同步函式。",
|
|
1441
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。",
|
|
1442
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "此成員不能包含具有 'override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?",
|
|
1443
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為包含此成員的類別 '{0}' 並未延伸另一個類別。",
|
|
1463
1444
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "因為此成員並未在基底類別 '{0}' 中宣告,所以其不得具有 'override' 修飾元。",
|
|
1464
1445
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "此成員不能具有 'override' 修飾元,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?",
|
|
1465
1446
|
"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "因為此成員包含的類別 '{0}' 並未延伸其他類別,所以其不得具有 'override' 修飾元。",
|
|
1447
|
+
"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "此成員必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{0}' 中的成員。",
|
|
1466
1448
|
"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "因為此成員會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。",
|
|
1467
1449
|
"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "因為此成員會覆寫基底類別 '{0}' 中宣告的抽象方法,所以其必須具有 'override' 修飾元。",
|
|
1468
1450
|
"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "只能以 ECMAScript 匯入/匯出來參考此模組,方法為開啟 '{0}' 旗標並參考其預設匯出。",
|
|
1469
1451
|
"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594": "此模組使用 'export =' 宣告,只能在使用 '{0}' 旗標時搭配預設匯入使用。",
|
|
1470
1452
|
"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "此多載簽章與其實作簽章不相容。",
|
|
1471
1453
|
"This_parameter_is_not_allowed_with_use_strict_directive_1346": "不允許此參數搭配 'use strict' 指示詞使用。",
|
|
1454
|
+
"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此參數屬性必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{0}' 中的成員。",
|
|
1472
1455
|
"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "因為此參數屬性會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。",
|
|
1473
1456
|
"This_spread_always_overwrites_this_property_2785": "此展開會永遠覆寫此屬性。",
|
|
1457
|
+
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此語法是保留在具有 mts 或 cts 副檔名的檔案中。新增尾端逗號或明確條件約束。",
|
|
1458
|
+
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此語法會保留在具有 mts 或 cts 副檔名的檔案中。請改用 `as` 運算式。",
|
|
1474
1459
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "此語法需要已匯入的協助程式,但找不到模組 '{0}'。",
|
|
1475
1460
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "此語法需要名為 '{1}' 的已匯入協助程式,但其不存在於 '{0}' 中。請考慮升級您的 '{0}' 版本。",
|
|
1476
1461
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "此語法需要名為 '{1}' 且具有 {2} 參數的匯入協助程式,其與 '{0}' 中的參數不相容。請考慮升級 '{0}' 的版本。",
|
|
1477
|
-
"
|
|
1462
|
+
"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378": "只有在 'module' 選項設定為 'es2022'、'esnext'、'system' 或 'nodenext',而且 'target' 選項設定為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。",
|
|
1478
1463
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 檔案中的最上層宣告必須以 'declare' 或 'export' 修飾元開頭。",
|
|
1479
|
-
"
|
|
1464
|
+
"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432": "只有在 'module' 選項設為 'es2022'、'esnext'、'system' 或 'nodenext',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。",
|
|
1480
1465
|
"Trailing_comma_not_allowed_1009": "尾端不得為逗號。",
|
|
1481
1466
|
"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "以個別模組的形式轉換每個檔案的語言 (類似於 'ts.transpileModule')。",
|
|
1482
1467
|
"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) 檔案",
|
|
@@ -1503,7 +1488,10 @@
|
|
|
1503
1488
|
"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "類型 '{0}' 不是陣列類型或字串類型,或沒有會傳回迭代器的 '[Symbol.iterator]()' 方法。",
|
|
1504
1489
|
"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548": "類型 '{0}' 不是陣列類型,或沒有會傳回迭代器的 '[Symbol.iterator]()' 方法。",
|
|
1505
1490
|
"Type_0_is_not_assignable_to_type_1_2322": "類型 '{0}' 不可指派給類型 '{1}'。",
|
|
1491
|
+
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "不得將類型 '{0}' 指派給類型 '{1}'。您指的是 '{2}' 嗎?",
|
|
1506
1492
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "無法將類型 '{0}' 指派給類型 '{1}'。有兩種使用此名稱的不同類型存在,但彼此並不相關。",
|
|
1493
|
+
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標屬性的類型。",
|
|
1494
|
+
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標的類型。",
|
|
1507
1495
|
"Type_0_is_not_comparable_to_type_1_2678": "類型 '{0}' 無法和類型 '{1}' 比較。",
|
|
1508
1496
|
"Type_0_is_not_generic_2315": "'{0}' 不是泛型類型。",
|
|
1509
1497
|
"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "類型 '{0}' 必須具備會傳回非同步迭代器的 '[Symbol.asyncIterator]()' 方法。",
|
|
@@ -1517,7 +1505,6 @@
|
|
|
1517
1505
|
"Type_aliases_can_only_be_used_in_TypeScript_files_8008": "類型別名只可用於 TypeScript 檔案中。",
|
|
1518
1506
|
"Type_annotation_cannot_appear_on_a_constructor_declaration_1093": "建構函式宣告不得有類型註釋。",
|
|
1519
1507
|
"Type_annotations_can_only_be_used_in_TypeScript_files_8010": "型別註解只可用於 TypeScript 檔案中。",
|
|
1520
|
-
"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455": "因為型別引數候選項 '{1}' 不是候選項 '{0}' 的超級類型,所以不是有效的型別引數。",
|
|
1521
1508
|
"Type_argument_expected_1140": "必須是型別引數。",
|
|
1522
1509
|
"Type_argument_list_cannot_be_empty_1099": "型別引數清單不得為空白。",
|
|
1523
1510
|
"Type_arguments_can_only_be_used_in_TypeScript_files_8011": "類型引數只可用於 TypeScript 檔案中。",
|
|
@@ -1590,7 +1577,6 @@
|
|
|
1590
1577
|
"Unknown_watch_option_0_5078": "未知的監看選項 '{0}'。",
|
|
1591
1578
|
"Unknown_watch_option_0_Did_you_mean_1_5079": "未知的監看選項 '{0}'。您是指 '{1}' 嗎?",
|
|
1592
1579
|
"Unreachable_code_detected_7027": "偵測到無法執行到的程式碼。",
|
|
1593
|
-
"Unsupported_locale_0_6049": "不支援的地區設定 '{0}'。",
|
|
1594
1580
|
"Unterminated_Unicode_escape_sequence_1199": "未結束的 Unicode 逸出序列。",
|
|
1595
1581
|
"Unterminated_quoted_string_in_response_file_0_6045": "回應檔 '{0}' 中有未結束的括號字串。",
|
|
1596
1582
|
"Unterminated_regular_expression_literal_1161": "未結束的規則運算式常值。",
|
|
@@ -1664,6 +1650,7 @@
|
|
|
1664
1650
|
"_0_index_signatures_are_incompatible_2634": "'{0}' 索引簽章不相容。",
|
|
1665
1651
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 索引類型 '{1}' 無法指派給 '{2}' 索引類型 '{3}'。",
|
|
1666
1652
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' 為基元,但 '{1}' 為包裝函式物件。建議盡可能使用 '{0}'。",
|
|
1653
|
+
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' 是類型,而且當 'preserveValueImports' 和 'isolatedModules' 都啟用時,必須使用僅類型匯入來匯入。",
|
|
1667
1654
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' 可指派給 '{1}' 類型的條件約束,但可能會將 '{1}' 以不同的條件約束 '{2}' 子類型來具現化。",
|
|
1668
1655
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' 已宣告但從未讀取其值。",
|
|
1669
1656
|
"_0_is_declared_but_never_used_6196": "宣告了 '{0}',但從未使用過。",
|
|
@@ -1679,7 +1666,6 @@
|
|
|
1679
1666
|
"_0_list_cannot_be_empty_1097": "'{0}' 清單不得為空白。",
|
|
1680
1667
|
"_0_modifier_already_seen_1030": "已有 '{0}' 修飾元。",
|
|
1681
1668
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "建構函式宣告不得有 '{0}' 修飾元。",
|
|
1682
|
-
"_0_modifier_cannot_appear_on_a_data_property_1043": "資料屬性不得有 '{0}' 修飾元。",
|
|
1683
1669
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "模組或命名空間元素不能有 '{0}' 修飾元。",
|
|
1684
1670
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "參數不得有 '{0}' 修飾元。",
|
|
1685
1671
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "類型成員不能有 '{0}' 修飾元。",
|
|
@@ -1688,7 +1674,6 @@
|
|
|
1688
1674
|
"_0_modifier_cannot_be_used_here_1042": "無法在此處使用 '{0}' 修飾元。",
|
|
1689
1675
|
"_0_modifier_cannot_be_used_in_an_ambient_context_1040": "無法在環境內容中使用 '{0}' 修飾元。",
|
|
1690
1676
|
"_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 修飾元無法與 '{1}' 修飾元並用。",
|
|
1691
|
-
"_0_modifier_cannot_be_used_with_a_class_declaration_1041": "'{0}' 修飾元無法與類別宣告並用。",
|
|
1692
1677
|
"_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 修飾元不可搭配私人識別碼一起使用。",
|
|
1693
1678
|
"_0_modifier_must_precede_1_modifier_1029": "'{0}' 修飾元必須在 '{1}' 修飾元之前。",
|
|
1694
1679
|
"_0_needs_an_explicit_type_annotation_2782": "'{0}' 需要明確的型別註解。",
|
|
@@ -1698,8 +1683,10 @@
|
|
|
1698
1683
|
"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "「{0}」僅指一種類型,但在此卻作為值使用。要變更您的目標程式庫嗎? 請嘗試將 `lib` 編譯器選項變更為 es2015 或更新版本。",
|
|
1699
1684
|
"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' 指的是全域的 UMD,但目前的檔案為模組。請考慮改為新增匯入。",
|
|
1700
1685
|
"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' 為值,但在此處卻作為類型使用。您是否是指 'typeof {0}'?",
|
|
1686
|
+
"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' 解析為僅類型宣告,而且當 'preserveValueImports' 和 'isolatedModules' 都啟用時,必須使用僅類型匯入來匯入。",
|
|
1687
|
+
"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' 解析為僅類型宣告,而且必須在啟用 'isolatedModules' 時,使用僅類型重新匯出來重新匯出。",
|
|
1688
|
+
"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' 應該在設定 json 檔案的 'compilerOptions' 物件內設定。",
|
|
1701
1689
|
"_0_tag_already_specified_1223": "已指定 '{0}' 標記。",
|
|
1702
|
-
"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253": "'{0}' 標記不得獨立用作頂層 JSDoc 標記。",
|
|
1703
1690
|
"_0_was_also_declared_here_6203": "'{0}' 也已宣告於此處。",
|
|
1704
1691
|
"_0_was_exported_here_1377": "'{0}' 已匯出到此處。",
|
|
1705
1692
|
"_0_was_imported_here_1376": "'{0}' 已匯入到此處。",
|
|
@@ -1715,7 +1702,6 @@
|
|
|
1715
1702
|
"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' 選項已設為 '{0}'。此值將用於解析非相對的模組名稱 '{1}'。",
|
|
1716
1703
|
"can_only_be_used_at_the_start_of_a_file_18026": "'#!' 只能用於檔案開頭。",
|
|
1717
1704
|
"case_or_default_expected_1130": "必須是 'case' 或 'default'。",
|
|
1718
|
-
"class_expressions_are_not_currently_supported_9003": "目前不支援 'class' 運算式。",
|
|
1719
1705
|
"const_declarations_can_only_be_declared_inside_a_block_1156": "只能在區塊內宣告 'const' 宣告。",
|
|
1720
1706
|
"const_declarations_must_be_initialized_1155": "'const' 宣告必須初始化。",
|
|
1721
1707
|
"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 列舉成員初始設定式已評估為非有限值。",
|
|
@@ -1726,7 +1712,6 @@
|
|
|
1726
1712
|
"constructor_is_a_reserved_word_18012": "'#constructor' 為保留字。",
|
|
1727
1713
|
"default_Colon_6903": "預設:",
|
|
1728
1714
|
"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102": "不得在 strict 模式中對識別碼呼叫 'delete'。",
|
|
1729
|
-
"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360": "刪除此項目 - 因為先前已建置專案 '{0}',所以其為最新狀態",
|
|
1730
1715
|
"export_Asterisk_does_not_re_export_a_default_1195": "'export *' 不會重新匯出預設匯出。",
|
|
1731
1716
|
"export_can_only_be_used_in_TypeScript_files_8003": "'export =' 只可用於 TypeScript 檔案中。",
|
|
1732
1717
|
"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668": "'export' 修飾元無法套用至環境模組或模組增強指定,原因是這二者永遠會顯示。",
|
|
@@ -1740,7 +1725,6 @@
|
|
|
1740
1725
|
"file_6025": "檔案",
|
|
1741
1726
|
"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "當檔案為模組時,只允許 'for await' 迴圈位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。",
|
|
1742
1727
|
"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "只允許在非同步函式中與模組的最上層使用 'for await' 迴圈。",
|
|
1743
|
-
"get_and_set_accessor_must_have_the_same_this_type_2682": "'get' 和 'set' 存取子必須有相同的 'this' 類型。",
|
|
1744
1728
|
"get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' 和 'set' 存取子不可宣告 'this' 參數。",
|
|
1745
1729
|
"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "如果指定 `files`,則為 `[]`,否則為 `[\"**/*\"]5D;`",
|
|
1746
1730
|
"implements_clause_already_seen_1175": "已經有 'implements' 子句。",
|
|
@@ -1764,6 +1748,9 @@
|
|
|
1764
1748
|
"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' 具有 'typesVersions' 項目 '{0}',其非有效的 SemVer 範圍。",
|
|
1765
1749
|
"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' 具有符合編譯器版本 '{1}' 的 'typesVersions' 項目 '{0}',要尋找符合模組名稱 '{2}' 的模式。",
|
|
1766
1750
|
"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' 具有限定版本路徑對應的 'typesVersions' 欄位。",
|
|
1751
|
+
"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "package.js 範圍 '{0}' 將指定名稱 '{1}' 明確對應到 Null。",
|
|
1752
|
+
"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.js 範圍 '{0}' 對指定名稱 '{1}' 的目標具有無效類型",
|
|
1753
|
+
"package_json_scope_0_has_no_imports_defined_6273": "package.js 範圍 '{0}' 沒有定義的匯入。",
|
|
1767
1754
|
"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' 選項已指定,將尋找符合模組名稱 '{0}' 的模式。",
|
|
1768
1755
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾元只能出現在屬性宣告或索引簽章。",
|
|
1769
1756
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 類型修飾元只可用於陣列與元組常值類型。",
|
|
@@ -1785,6 +1772,7 @@
|
|
|
1785
1772
|
"this_cannot_be_referenced_in_constructor_arguments_2333": "建構函式引數中不得參考 'this'。",
|
|
1786
1773
|
"this_cannot_be_referenced_in_current_location_2332": "目前的位置中不得參考 'this'。",
|
|
1787
1774
|
"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "因為 'this' 沒有型別註解,所以隱含具有類型 'any'。",
|
|
1775
|
+
"true_for_ES2022_and_above_including_ESNext_6930": "ES2022 及以上為 true,包括 ESNext。",
|
|
1788
1776
|
"true_if_composite_false_otherwise_6909": "如果為 `composite`,則為 `true`,否則為 `false`",
|
|
1789
1777
|
"tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript 編譯器",
|
|
1790
1778
|
"type_Colon_6902": "輸入:",
|