typescript 4.6.3 → 4.7.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/lib/cs/diagnosticMessages.generated.json +59 -41
- package/lib/de/diagnosticMessages.generated.json +59 -41
- package/lib/es/diagnosticMessages.generated.json +52 -34
- package/lib/fr/diagnosticMessages.generated.json +41 -23
- package/lib/it/diagnosticMessages.generated.json +61 -43
- package/lib/ja/diagnosticMessages.generated.json +40 -22
- package/lib/ko/diagnosticMessages.generated.json +60 -42
- package/lib/lib.dom.d.ts +404 -31
- package/lib/lib.dom.iterable.d.ts +16 -3
- package/lib/lib.es2015.core.d.ts +3 -3
- package/lib/lib.es2015.reflect.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +3 -1
- package/lib/lib.es2020.d.ts +2 -0
- package/lib/lib.es2020.date.d.ts +44 -0
- package/lib/lib.es2020.intl.d.ts +43 -8
- package/lib/lib.es2020.number.d.ts +30 -0
- package/lib/lib.es2021.intl.d.ts +106 -4
- package/lib/lib.es5.d.ts +10 -2
- package/lib/lib.esnext.intl.d.ts +4 -1
- package/lib/lib.webworker.d.ts +110 -25
- package/lib/lib.webworker.iterable.d.ts +3 -3
- package/lib/pl/diagnosticMessages.generated.json +44 -26
- package/lib/protocol.d.ts +42 -2
- package/lib/pt-br/diagnosticMessages.generated.json +50 -32
- package/lib/ru/diagnosticMessages.generated.json +48 -30
- package/lib/tr/diagnosticMessages.generated.json +61 -43
- package/lib/tsc.js +7045 -5816
- package/lib/tsserver.js +22377 -20198
- package/lib/tsserverlibrary.d.ts +428 -293
- package/lib/tsserverlibrary.js +22364 -20186
- package/lib/typescript.d.ts +385 -290
- package/lib/typescript.js +22050 -19980
- package/lib/typescriptServices.d.ts +385 -290
- package/lib/typescriptServices.js +22050 -19980
- package/lib/typingsInstaller.js +16680 -15206
- package/lib/zh-cn/diagnosticMessages.generated.json +49 -31
- package/lib/zh-tw/diagnosticMessages.generated.json +61 -43
- package/package.json +1 -10
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"A_module_cannot_have_multiple_default_exports_2528": "一個模組不得有多個預設匯出。",
|
|
55
55
|
"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "命名空間宣告的所在檔案位置,不得與其要合併的類別或函式不同。",
|
|
56
56
|
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "命名空間宣告的位置不得先於其要合併的類別或函式。",
|
|
57
|
-
"
|
|
58
|
-
"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384": "具有型別引數的 'new' 運算式後面必須永遠接著以括號括住的引數清單。",
|
|
57
|
+
"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空間宣告只允許在命名空間或模組的頂層。",
|
|
59
58
|
"A_non_dry_build_would_build_project_0_6357": "非 -dry 組建會建置專案 '{0}'",
|
|
60
59
|
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 組建會刪除下列檔案: {0}",
|
|
61
60
|
"A_non_dry_build_would_update_output_of_project_0_6375": "非 DRY 組建將會更新專案 '{0}' 的輸出",
|
|
@@ -102,6 +101,7 @@
|
|
|
102
101
|
"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230": "型別述詞不得參考繫結模式的項目 '{0}'。",
|
|
103
102
|
"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228": "只有函式及方法的傳回型別位置才允許型別述詞。",
|
|
104
103
|
"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677": "類型述詞的類型必須可指派給其參數的類型。",
|
|
104
|
+
"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272": "啟用 'isolatedModules' 和 'emitDecoratorMetadata' 時,修飾簽章中參考的類型必須以 'import type' 或命名空間匯入來匯入。",
|
|
105
105
|
"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332": "型別為 'unique symbol' 型別的變數必須是 'const'。",
|
|
106
106
|
"A_yield_expression_is_only_allowed_in_a_generator_body_1163": "只有產生器主體才允許 'yield' 運算式。",
|
|
107
107
|
"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "無法透過 super 運算式存取類別 '{1}' 中的抽象方法 '{0}'。",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "對所有比對成員名稱的未解析變數新增限定詞",
|
|
153
153
|
"Add_to_all_uncalled_decorators_95044": "為所有未呼叫的裝飾項目新增 '()'",
|
|
154
154
|
"Add_ts_ignore_to_all_error_messages_95042": "為所有錯誤訊息新增 '@ts-ignore'",
|
|
155
|
-
"Add_undefined_to_a_type_when_accessed_using_an_index_6674": "使用索引進行存取時,將
|
|
155
|
+
"Add_undefined_to_a_type_when_accessed_using_an_index_6674": "使用索引進行存取時,將 'undefined' 新增至類型。",
|
|
156
156
|
"Add_undefined_to_optional_property_type_95169": "將 'undefined' 新增至選擇性屬性類型",
|
|
157
157
|
"Add_undefined_type_to_all_uninitialized_properties_95029": "為所有未初始化的屬性新增未定義的類型",
|
|
158
158
|
"Add_undefined_type_to_property_0_95018": "將 'undefined' 類型新增至屬性 '{0}'",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"All_imports_in_import_declaration_are_unused_6192": "匯入宣告中的所有匯入皆未使用。",
|
|
169
169
|
"All_type_parameters_are_unused_6205": "未使用任何型別參數。",
|
|
170
170
|
"All_variables_are_unused_6199": "所有變數都未使用。",
|
|
171
|
-
"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "允許 JavaScript 檔案成為您程式的一部分。使用
|
|
171
|
+
"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600": "允許 JavaScript 檔案成為您程式的一部分。使用 'checkJS' 選項可從這些檔案取得錯誤。",
|
|
172
172
|
"Allow_accessing_UMD_globals_from_modules_6602": "允許從模組存取 UMD 全域。",
|
|
173
173
|
"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "允許從沒有預設匯出的模組進行預設匯入。這不會影響程式碼發出,僅為類型檢查。",
|
|
174
174
|
"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "當模組沒有預設匯出時,允許 'import x from y'。",
|
|
@@ -199,7 +199,8 @@
|
|
|
199
199
|
"An_export_assignment_cannot_be_used_in_a_namespace_1063": "命名空間中不可使用匯出指派。",
|
|
200
200
|
"An_export_assignment_cannot_have_modifiers_1120": "匯出指派不得有修飾元。",
|
|
201
201
|
"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231": "匯出指派必須位於檔案或模組宣告的最上層。",
|
|
202
|
-
"
|
|
202
|
+
"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "匯出宣告只能在模組的頂層使用。",
|
|
203
|
+
"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "匯出宣告只能在命名空間或模組的頂層使用。",
|
|
203
204
|
"An_export_declaration_cannot_have_modifiers_1193": "匯出宣告不得有修飾元。",
|
|
204
205
|
"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "無法對 'void' 類型的運算式測試真實性。",
|
|
205
206
|
"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "擴充的 Unicode 逸出值必須介於 0x0 與 0x10FFFF (不含) 之間。",
|
|
@@ -208,7 +209,8 @@
|
|
|
208
209
|
"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "匯入別名不能參考使用 'export type' 匯出的宣告。",
|
|
209
210
|
"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "匯入別名不能參考使用 'import type' 匯入的宣告。",
|
|
210
211
|
"An_import_alias_cannot_use_import_type_1392": "匯入別名不能使用 'import type'",
|
|
211
|
-
"
|
|
212
|
+
"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "匯入宣告只能在模組的頂層使用。",
|
|
213
|
+
"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "匯入宣告只能在命名空間或模組的頂層使用。",
|
|
212
214
|
"An_import_declaration_cannot_have_modifiers_1191": "匯入宣告不得有修飾元。",
|
|
213
215
|
"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "匯入路徑的結尾不得為 '{0}' 副檔名。請考慮改為匯入 '{1}'。",
|
|
214
216
|
"An_index_signature_cannot_have_a_rest_parameter_1017": "索引簽章不得有剩餘參數。",
|
|
@@ -264,7 +266,7 @@
|
|
|
264
266
|
"Binding_element_0_implicitly_has_an_1_type_7031": "繫結元素 '{0}' 隱含擁有 '{1}' 類型。",
|
|
265
267
|
"Block_scoped_variable_0_used_before_its_declaration_2448": "已在其宣告之前使用區塊範圍變數 '{0}'。",
|
|
266
268
|
"Build_a_composite_project_in_the_working_directory_6925": "在工作目錄中建置複合專案。",
|
|
267
|
-
"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "
|
|
269
|
+
"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "建置包括似乎已是最新狀態的所有專案。",
|
|
268
270
|
"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "若已過期,則建置一或多個專案及其相依性",
|
|
269
271
|
"Build_option_0_requires_a_value_of_type_1_5073": "組建選項 '{0}' 需要 {1} 類型的值。",
|
|
270
272
|
"Building_project_0_6358": "正在建置專案 '{0}'...",
|
|
@@ -345,6 +347,7 @@
|
|
|
345
347
|
"Cannot_start_a_function_call_in_a_type_annotation_1441": "無法在類型註釋中啟動函式呼叫。",
|
|
346
348
|
"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "因為讀取檔案 '{1}' 時發生錯誤,所以無法更新專案 '{0}' 的輸出",
|
|
347
349
|
"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "除非有提供 '--jsx' 旗標,否則無法使用 JSX。",
|
|
350
|
+
"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "提供 '--isolatedModules' 旗標時,無法在類型或僅類型命名空間上使用 'export import'。",
|
|
348
351
|
"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "當 '--module' 為 'none' 時,無法使用匯入、匯出或模組增強指定。",
|
|
349
352
|
"Cannot_use_namespace_0_as_a_type_2709": "不得使用命名空間 '{0}' 作為類型。",
|
|
350
353
|
"Cannot_use_namespace_0_as_a_value_2708": "不得使用命名空間 '{0}' 作為值。",
|
|
@@ -361,7 +364,7 @@
|
|
|
361
364
|
"Change_extends_to_implements_90003": "將 [延伸] 變更至 [實作]5D;",
|
|
362
365
|
"Change_spelling_to_0_90022": "將拼字變更為 '{0}'",
|
|
363
366
|
"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "檢查是否已宣告但未在建構函式中設定的類別屬性。",
|
|
364
|
-
"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "檢查
|
|
367
|
+
"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "檢查 'bind'、'call' 和 'apply' 方法的引數是否與原始函式相符。",
|
|
365
368
|
"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "檢查 '{0}' 是否為 '{1}' - '{2}' 的最長相符前置詞。",
|
|
366
369
|
"Circular_definition_of_import_alias_0_2303": "匯入別名 '{0}' 的循環定義。",
|
|
367
370
|
"Circularity_detected_while_resolving_configuration_Colon_0_18000": "解析組態時偵測到循環性: {0}",
|
|
@@ -415,6 +418,7 @@
|
|
|
415
418
|
"Constructors_for_derived_classes_must_contain_a_super_call_2377": "衍生類別的建構函式必須包含 'super' 呼叫。",
|
|
416
419
|
"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126": "未指定包含檔案,因此無法決定根目錄,而將略過 'node_modules' 中的查閱。",
|
|
417
420
|
"Containing_function_is_not_an_arrow_function_95128": "內含函式不是箭頭函式",
|
|
421
|
+
"Control_what_method_is_used_to_detect_module_format_JS_files_1475": "控制用來偵測模組格式 JS 檔案的方法。",
|
|
418
422
|
"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352": "將類型 '{0}' 轉換為類型 '{1}' 可能會發生錯誤,原因是這兩個類型彼此並未充分重疊。如果是故意轉換的,請先將運算式轉換為 'unknown'。",
|
|
419
423
|
"Convert_0_to_1_in_0_95003": "將 '{0}' 轉換成 '{1} in {0}'",
|
|
420
424
|
"Convert_0_to_mapped_object_type_95055": "將 '{0}' 轉換為對應的物件類型",
|
|
@@ -488,21 +492,26 @@
|
|
|
488
492
|
"Declare_property_0_90016": "宣告屬性 '{0}'",
|
|
489
493
|
"Declare_static_method_0_90024": "宣告靜態方法 '{0}'",
|
|
490
494
|
"Declare_static_property_0_90027": "宣告靜態屬性 '{0}'",
|
|
495
|
+
"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "裝飾項目函式傳回類型 '{0}' 無法指派給類型 '{1}'。",
|
|
496
|
+
"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "裝飾項目函式傳回類型是 '{0}',但必須是 'void' 或 'any'。",
|
|
491
497
|
"Decorators_are_not_valid_here_1206": "裝飾項目在此處無效。",
|
|
492
498
|
"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "無法將裝飾項目套用至多個同名的 get/set 存取子。",
|
|
493
499
|
"Decorators_may_not_be_applied_to_this_parameters_1433": "裝飾項目無法套用至 'this' 參數。",
|
|
494
500
|
"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "裝飾項目必須在屬性宣告的名稱和所有關鍵詞之前。",
|
|
501
|
+
"Default_catch_clause_variables_as_unknown_instead_of_any_6803": "預設 catch 子句變數為 'unknown' 而非 'any'。",
|
|
495
502
|
"Default_export_of_the_module_has_or_is_using_private_name_0_4082": "模組的預設匯出具有或正在使用私用名稱 '{0}'。",
|
|
496
503
|
"Default_library_1424": "預設程式庫",
|
|
497
504
|
"Default_library_for_target_0_1425": "目標 '{0}' 的預設程式庫",
|
|
498
505
|
"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "下列識別碼的定義與其他檔案中的定義衝突: {0}",
|
|
499
506
|
"Delete_all_unused_declarations_95024": "刪除所有未使用的宣告",
|
|
500
507
|
"Delete_all_unused_imports_95147": "刪除所有未使用的匯入",
|
|
501
|
-
"
|
|
508
|
+
"Delete_all_unused_param_tags_95172": "刪除所有未使用的 '@param' 標籤",
|
|
509
|
+
"Delete_the_outputs_of_all_projects_6365": "刪除所有專案的輸出。",
|
|
510
|
+
"Delete_unused_param_tag_0_95171": "刪除未使用的 '@param' 標記 '{0}'",
|
|
502
511
|
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[即將淘汰] 請改用 '--jsxFactory'。當目標為 'react' JSX 發出時,為 createElement 指定所叫用的物件",
|
|
503
512
|
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[即將淘汰] 請改用 '--outFile'。 串連輸出並將其發出到單一檔案",
|
|
504
513
|
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[即將淘汰] 請改用 '--skipLibCheck'。跳過預設程式庫宣告檔案的類型檢查。",
|
|
505
|
-
"Deprecated_setting_Use_outFile_instead_6677": "已淘汰的設定值。請改用
|
|
514
|
+
"Deprecated_setting_Use_outFile_instead_6677": "已淘汰的設定值。請改用 'outFile'。",
|
|
506
515
|
"Did_you_forget_to_use_await_2773": "忘了要使用 'await' 嗎?",
|
|
507
516
|
"Did_you_mean_0_1369": "您指 '{0}' 嗎?",
|
|
508
517
|
"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735": "您是要將 '{0}' 限制為類型 'new (...args: any[]) => {1}' 嗎?",
|
|
@@ -516,16 +525,16 @@
|
|
|
516
525
|
"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "停用在發出的 JavaScript 檔案中新增 'use strict' 指示詞。",
|
|
517
526
|
"Disable_checking_for_this_file_90018": "停用此檔案的檢查",
|
|
518
527
|
"Disable_emitting_comments_6688": "停用發出註解。",
|
|
519
|
-
"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "停用其 JSDoc 註解中具有
|
|
528
|
+
"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701": "停用其 JSDoc 註解中具有 '@internal' 的發出宣告。",
|
|
520
529
|
"Disable_emitting_files_from_a_compilation_6660": "停用從編譯發出檔案。",
|
|
521
530
|
"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662": "如果報告任何型別檢查錯誤,則停用發出的檔案。",
|
|
522
|
-
"Disable_erasing_const_enum_declarations_in_generated_code_6682": "停用在產生的程式碼中抹除
|
|
531
|
+
"Disable_erasing_const_enum_declarations_in_generated_code_6682": "停用在產生的程式碼中抹除 'const enum' 宣告。",
|
|
523
532
|
"Disable_error_reporting_for_unreachable_code_6603": "停用無法執行到的程式碼錯誤報告。",
|
|
524
533
|
"Disable_error_reporting_for_unused_labels_6604": "停用未使用標籤的錯誤報表。",
|
|
525
|
-
"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "停用在編譯輸出中產生自訂的協助程式函式,例如
|
|
534
|
+
"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "停用在編譯輸出中產生自訂的協助程式函式,例如 '__extends'。",
|
|
526
535
|
"Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "停用包括任何程式庫檔案,包括預設的 lib.d.ts。",
|
|
527
536
|
"Disable_loading_referenced_projects_6235": "停用載入參考的專案。",
|
|
528
|
-
"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "
|
|
537
|
+
"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620": "參考複合專案時,停用偏好的來源檔案而不是宣告檔案。",
|
|
529
538
|
"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702": "在建立物件常值期間停用多餘屬性錯誤報告。",
|
|
530
539
|
"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683": "停用將 symlinks 解析為其 realpath。這與節點中的相同旗標有關。",
|
|
531
540
|
"Disable_size_limitations_on_JavaScript_projects_6162": "停用 JavaScript 專案的大小限制。",
|
|
@@ -534,9 +543,9 @@
|
|
|
534
543
|
"Disable_the_type_acquisition_for_JavaScript_projects_6625": "停用 JavaScript 專案的類型取得",
|
|
535
544
|
"Disable_truncating_types_in_error_messages_6663": "停用錯誤訊息中的截斷類型。",
|
|
536
545
|
"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221": "停用來源檔案,而非所參考專案中的宣告檔案。",
|
|
537
|
-
"Disable_wiping_the_console_in_watch_mode_6684": "
|
|
546
|
+
"Disable_wiping_the_console_in_watch_mode_6684": "停用在監看模式中抹除主控台。",
|
|
538
547
|
"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616": "透過查看專案中的檔案名,停用型別推斷的取得。",
|
|
539
|
-
"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "不允許
|
|
548
|
+
"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "不允許 import'、'require' 或 '<reference>' 擴充 TypeScript 應該加入專案的檔案數目。",
|
|
540
549
|
"Disallow_inconsistently_cased_references_to_the_same_file_6078": "不允許相同檔案大小寫不一致的參考。",
|
|
541
550
|
"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "不要在編譯後的檔案清單中新增三道斜線的參考或匯入的模組。",
|
|
542
551
|
"Do_not_emit_comments_to_output_6009": "請勿將註解發出到輸出。",
|
|
@@ -581,23 +590,22 @@
|
|
|
581
590
|
"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622": "在輸出檔的開頭發出 UTF-8 位元組順序標記 (BOM)。",
|
|
582
591
|
"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151": "發出單一檔案包含來源對應,而不要使用個別的檔案。",
|
|
583
592
|
"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638": "發出用於偵錯的編譯器執行 v8 CPU 設定檔。",
|
|
584
|
-
"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "發出其他 JavaScript,以輕鬆支援匯入 CommonJS 模組。這會啟用
|
|
593
|
+
"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626": "發出其他 JavaScript,以輕鬆支援匯入 CommonJS 模組。這會啟用 'allowSyntheticDefaultImports' 進行類型相容性。",
|
|
585
594
|
"Emit_class_fields_with_Define_instead_of_Set_6222": "使用 Define 而非 Set 發出類別欄位。",
|
|
586
595
|
"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624": "發出來源檔案中修飾式宣告的設計型別中繼資料。",
|
|
587
596
|
"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621": "針對反覆項目發出更符合規範,但具詳細資訊及較低效能 JavaScript。",
|
|
588
597
|
"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152": "使用單一檔案發出來源與來源對應。必須設定 '--inlineSourceMap' 或 '--sourceMap'。",
|
|
589
598
|
"Enable_all_strict_type_checking_options_6180": "啟用所有 Strict 類型檢查選項。",
|
|
590
|
-
"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "在 TypeScript
|
|
599
|
+
"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685": "在 TypeScript 的輸出中啟用色彩及格式化,讓編譯器錯誤更容易閱讀。",
|
|
591
600
|
"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611": "啟用允許 TypeScript 專案搭配專案參考使用的條件約束。",
|
|
592
601
|
"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667": "啟用未在函式中明確傳回之 codepaths 的錯誤報吿。",
|
|
593
|
-
"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "啟用具有隱含
|
|
602
|
+
"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665": "啟用具有隱含 'any' 類型的運算式及宣告之錯誤報告。",
|
|
594
603
|
"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664": "啟用 switch 陳述式中 fallthrough 案例的錯誤報表。",
|
|
595
604
|
"Enable_error_reporting_in_type_checked_JavaScript_files_6609": "在已完成型別檢查的 JavaScript 檔案中啟用錯誤報表。",
|
|
596
|
-
"
|
|
597
|
-
"Enable_error_reporting_when_this_is_given_the_type_any_6668": "為
|
|
605
|
+
"Enable_error_reporting_when_local_variables_aren_t_read_6675": "當未讀取區域變數時,啟用錯誤報吿。",
|
|
606
|
+
"Enable_error_reporting_when_this_is_given_the_type_any_6668": "為 'this' 指定類型 'any' 時,啟用錯誤報表。",
|
|
598
607
|
"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "啟用 TC39 第 2 階段草稿裝飾項目的實驗性支援。",
|
|
599
|
-
"Enable_importing_json_files_6689": "啟用匯入 json
|
|
600
|
-
"Enable_incremental_compilation_6378": "啟用累加編譯",
|
|
608
|
+
"Enable_importing_json_files_6689": "啟用匯入 json 檔案。",
|
|
601
609
|
"Enable_project_compilation_6302": "啟用專案編譯",
|
|
602
610
|
"Enable_strict_bind_call_and_apply_methods_on_functions_6214": "對函式啟用嚴格的 'bind'、'call' 及 'apply' 方法。",
|
|
603
611
|
"Enable_strict_checking_of_function_types_6186": "啟用嚴格檢查函式類型。",
|
|
@@ -606,11 +614,11 @@
|
|
|
606
614
|
"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074": "在您的組態檔中啟用 'experimentalDecorators' 選項",
|
|
607
615
|
"Enable_the_jsx_flag_in_your_configuration_file_95088": "在您的組態檔中啟用 '--jsx' 旗標",
|
|
608
616
|
"Enable_tracing_of_the_name_resolution_process_6085": "啟用名稱解析流程的追蹤。",
|
|
609
|
-
"Enable_verbose_logging_6713": "
|
|
617
|
+
"Enable_verbose_logging_6713": "啟用詳細資訊記錄。",
|
|
610
618
|
"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037": "透過為所有匯入建立命名空間物件,讓 CommonJS 和 ES 模組之間的產出有互通性。意指 'allowSyntheticDefaultImports'。",
|
|
611
619
|
"Enables_experimental_support_for_ES7_decorators_6065": "啟用 ES7 裝飾項目的實驗支援。",
|
|
612
620
|
"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066": "啟用實驗支援以發出裝飾項目類型的中繼資料。",
|
|
613
|
-
"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "
|
|
621
|
+
"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671": "對使用索引型別宣告的索引鍵強制使用索引存取子。",
|
|
614
622
|
"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666": "請確認衍生類別中的覆寫成員已標上 override 修飾元。",
|
|
615
623
|
"Ensure_that_casing_is_correct_in_imports_6637": "請確認 Imports 中的大小寫正確。",
|
|
616
624
|
"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "確保每個檔案都可安全地轉譯,而不依賴其他匯入。",
|
|
@@ -751,7 +759,7 @@
|
|
|
751
759
|
"Global_type_0_must_be_a_class_or_interface_type_2316": "全域類型 '{0}' 必須是類別或介面類型。",
|
|
752
760
|
"Global_type_0_must_have_1_type_parameter_s_2317": "全域類型 '{0}' 必須要有 {1} 個型別參數。",
|
|
753
761
|
"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384": "於 '--incremental' 與 '--watch' 中重新編譯時,會假設檔案中的變更只會影響直接相依於重新編譯的檔案。",
|
|
754
|
-
"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "在使用
|
|
762
|
+
"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606": "在使用 'incremental' 與 'watch' 模式的專案中重新編譯,會假設檔案中的變更只會影響直接相依於重新編譯的檔案。",
|
|
755
763
|
"Hexadecimal_digit_expected_1125": "必須適十六進位數字。",
|
|
756
764
|
"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262": "需要識別碼。'{0}' 是模組的頂層保留字。",
|
|
757
765
|
"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212": "必須是識別碼。'{0}' 在 strict 模式中為保留字。",
|
|
@@ -797,7 +805,6 @@
|
|
|
797
805
|
"Include_modules_imported_with_json_extension_6197": "包含匯入有 '.json' 延伸模組的模組",
|
|
798
806
|
"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "在發出 JavaScript 內的 sourcemap 中包含原始程式碼。",
|
|
799
807
|
"Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在發出的 JavaScript 中包含 sourcemap 檔案。",
|
|
800
|
-
"Include_undefined_in_index_signature_results_6716": "在索引簽章結果中包含 'undefined'",
|
|
801
808
|
"Includes_imports_of_types_referenced_by_0_90054": "包括 '{0}' 參考的類型匯入",
|
|
802
809
|
"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch、-w 會開始監看目前專案是否有檔案變更。設定之後,您便可以使用以下來設定監看式模式:",
|
|
803
810
|
"Index_signature_for_type_0_is_missing_in_type_1_2329": "類型 '{0}' 的索引簽章在類型 '{1}' 中遺失。",
|
|
@@ -872,14 +879,14 @@
|
|
|
872
879
|
"Library_referenced_via_0_from_file_1_1405": "透過 '{0}' 從檔案 '{1}' 參考的程式庫",
|
|
873
880
|
"Line_break_not_permitted_here_1142": "這裡不可使用分行符號。",
|
|
874
881
|
"Line_terminator_not_permitted_before_arrow_1200": "箭號前不得有行結束字元。",
|
|
882
|
+
"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931": "解析模組時要搜尋的檔案名尾碼清單。",
|
|
875
883
|
"List_of_folders_to_include_type_definitions_from_6161": "要包含之類型定義所屬資料夾的清單。",
|
|
876
|
-
"List_of_language_service_plugins_6181": "語言服務外掛程式清單。",
|
|
877
884
|
"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "資料夾的清單。這些資料夾內所含的合併內容代表了專案在執行階段時的結果。",
|
|
878
885
|
"Loading_0_from_the_root_dir_1_candidate_location_2_6109": "正在從根目錄 '{1}',候選位置 '{2}' 載入 '{0}'。",
|
|
879
886
|
"Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "正在從 'node_modules' 資料夾載入模組 '{0}',目標檔案類型 '{1}'。",
|
|
880
887
|
"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "正在將模組載入為檔案/資料夾,候選模組位置 '{0}',目標檔案類型 '{1}'。",
|
|
881
888
|
"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "地區設定的格式必須是 <語言> 或 <語言>-<國家/地區>。例如 '{0}' 或 '{1}'。",
|
|
882
|
-
"Log_paths_used_during_the_moduleResolution_process_6706": "在
|
|
889
|
+
"Log_paths_used_during_the_moduleResolution_process_6706": "在 'moduleResolution' 處理序期間使用的記錄檔路徑。",
|
|
883
890
|
"Longest_matching_prefix_for_0_is_1_6108": "符合 '{0}' 的前置詞最長為 '{1}'。",
|
|
884
891
|
"Looking_up_in_node_modules_folder_initial_location_0_6125": "目前正在 'node_modules' 資料夾中查詢,初始位置為 '{0}'。",
|
|
885
892
|
"Make_all_super_calls_the_first_statement_in_their_constructor_95036": "在其建構函式的第一個陳述式中呼叫所有的 'super()'",
|
|
@@ -1143,7 +1150,7 @@
|
|
|
1143
1150
|
"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027": "匯出類別的公用靜態屬性 '{0}' 具有或使用私用模組 '{2}' 中的名稱 '{1}'。",
|
|
1144
1151
|
"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028": "匯出類別的公用靜態屬性 '{0}' 具有或使用私用名稱 '{1}'。",
|
|
1145
1152
|
"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032": "限定名稱 '{0}' 必須以 '@param {object} {1}' 開頭。",
|
|
1146
|
-
"Raise_an_error_when_a_function_parameter_isn_t_read_6676": "
|
|
1153
|
+
"Raise_an_error_when_a_function_parameter_isn_t_read_6676": "當函式參數未讀取時引發錯誤。",
|
|
1147
1154
|
"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "當運算式及宣告包含隱含的 'any' 類型時顯示錯誤。",
|
|
1148
1155
|
"Raise_error_on_this_expressions_with_an_implied_any_type_6115": "對具有隱含 'any' 類型的 'this' 運算式引發錯誤。",
|
|
1149
1156
|
"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "提供 '--isolatedModules' 旗標時,必須使用 'export type' 重新匯出類型。",
|
|
@@ -1178,6 +1185,7 @@
|
|
|
1178
1185
|
"Remove_unused_destructuring_declaration_90039": "移除未使用的解構宣告",
|
|
1179
1186
|
"Remove_unused_label_95053": "移除未使用的標籤",
|
|
1180
1187
|
"Remove_variable_statement_90010": "移除變數陳述式",
|
|
1188
|
+
"Rename_param_tag_name_0_to_1_95173": "將 '@param' 標籤名稱 '{0}' 重新命名為'{1}'",
|
|
1181
1189
|
"Replace_0_with_Promise_1_90036": "將 '{0}' 取代為 'Promise<{1}>'",
|
|
1182
1190
|
"Replace_all_unused_infer_with_unknown_90031": "以 'unknown' 取代所有未使用的 'infer'",
|
|
1183
1191
|
"Replace_import_with_0_95015": "以 '{0}' 取代匯入。",
|
|
@@ -1191,6 +1199,7 @@
|
|
|
1191
1199
|
"Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必要型別參數可能未遵循選擇性型別參數。",
|
|
1192
1200
|
"Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "從位置 '{1}' 的快取中找到模組 '{0}' 的解析。",
|
|
1193
1201
|
"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "從位置 '{0}' 的快取記憶體找到類型參照指示詞 '{1}'。",
|
|
1202
|
+
"Resolution_modes_are_only_supported_when_moduleResolution_is_node12_or_nodenext_1452": "只有當 'moduleResolution' 為 'node12' 或 'nodenext' 時,才支援解析模式。",
|
|
1194
1203
|
"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只將 'keyof' 解析為字串值的屬性名稱 (無任何數字或符號)。",
|
|
1195
1204
|
"Resolving_module_0_from_1_6086": "======== 正在從 '{1}' 解析模組 '{0}'。========",
|
|
1196
1205
|
"Resolving_module_name_0_relative_to_base_url_1_2_6094": "正在解析與基底 URL '{1}' 相對的模組名稱 '{0}' - '{2}'。",
|
|
@@ -1275,14 +1284,14 @@
|
|
|
1275
1284
|
"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "來源未針對目標中位於 {0} 的可變元素提供相符項目。",
|
|
1276
1285
|
"Specify_ECMAScript_target_version_6015": "指定 ECMAScript 目標版本。",
|
|
1277
1286
|
"Specify_JSX_code_generation_6080": "指定 JSX 程式碼產生。",
|
|
1278
|
-
"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "指定將所有輸出組合成一個 JavaScript 檔案的檔案。如果
|
|
1287
|
+
"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "指定將所有輸出組合成一個 JavaScript 檔案的檔案。如果 'declaration' 為 True,則也會指定組合所有 .d.ts 輸出的檔案。",
|
|
1279
1288
|
"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641": "指定符合編譯中要包含之檔案的 glob 模式清單。",
|
|
1280
1289
|
"Specify_a_list_of_language_service_plugins_to_include_6681": "指定要包含的語言服務外掛程式清單。",
|
|
1281
1290
|
"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651": "指定一組描述目標執行階段環境的配套程式庫宣告檔案。",
|
|
1282
1291
|
"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680": "指定一組將匯入重新對應至其他查閱位置的項目。",
|
|
1283
1292
|
"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687": "指定為專案指定路徑的物件陣列。用於專案參考。",
|
|
1284
1293
|
"Specify_an_output_folder_for_all_emitted_files_6678": "指定所有發出檔案的輸出檔案夾。",
|
|
1285
|
-
"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "
|
|
1294
|
+
"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718": "指定僅用於類型之匯入的發出/檢查行為。",
|
|
1286
1295
|
"Specify_file_to_store_incremental_compilation_information_6380": "指定要儲存累加編譯資訊的檔案",
|
|
1287
1296
|
"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658": "指定 TypeScript 從指定的模組指定名稱查詢檔案的方式。",
|
|
1288
1297
|
"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714": "指定在缺少遞迴檔案監視功能之系統上如何監視目錄。",
|
|
@@ -1290,8 +1299,8 @@
|
|
|
1290
1299
|
"Specify_library_files_to_be_included_in_the_compilation_6079": "請指定要併入編譯中的程式庫檔案。",
|
|
1291
1300
|
"Specify_module_code_generation_6016": "指定模組程式碼產生。",
|
|
1292
1301
|
"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "指定模組解決方案策略: 'node' (Node.js) 或 'classic' (TypeScript 1.6 前)。",
|
|
1293
|
-
"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "指定使用
|
|
1294
|
-
"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "指定多個資料夾,其作用類似
|
|
1302
|
+
"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "指定使用 'jsx: react-jsx*' 時,用來匯入 JSX Factory 函式的模組指定名稱。",
|
|
1303
|
+
"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "指定多個資料夾,其作用類似 './node_modules/@types'。",
|
|
1295
1304
|
"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "指定一或多個路徑或節點模組參考至繼承設定的基礎設定檔。",
|
|
1296
1305
|
"Specify_options_for_automatic_acquisition_of_declaration_files_6709": "指定用於自動擷取宣告檔案的選項。",
|
|
1297
1306
|
"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227": "指定當輪詢監看無法使用下列檔案系統事件建立時,加以建立的策略: 'FixedInterval' (預設)、'PriorityInterval'、'DynamicPriority'、'FixedChunkSize'。",
|
|
@@ -1299,17 +1308,17 @@
|
|
|
1299
1308
|
"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225": "指定監看檔案的策略: 'FixedPollingInterval' (預設)、'PriorityPollingInterval'、'DynamicPriorityPolling'、'FixedChunkSizePolling'、'UseFsEvents'、'UseFsEventsOnParentDirectory'。",
|
|
1300
1309
|
"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648": "指定要在以 React JSX 發出為目標時使用於片段的 JSX 片段參考,例如 'React.Fragment' 或 'Fragment'。",
|
|
1301
1310
|
"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146": "請指定要在以 'react' JSX 發出為目標時使用的 JSX factory 函式。例如 'React.createElement' 或 'h'。",
|
|
1302
|
-
"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "
|
|
1311
|
+
"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647": "請指定要在以 React JSX 發出為目標時使用的 JSX factory 函式。例如 'React.createElement' 或 'h'。",
|
|
1303
1312
|
"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034": "當指定以 'jsxFactory' 編譯器選項設定 'react' JSX 輸出的目標時,請指定要使用的 JSX 片段處理站函式,例如 'Fragment'。",
|
|
1304
1313
|
"Specify_the_base_directory_to_resolve_non_relative_module_names_6607": "指定基礎目錄來解析非相對的模組名稱。",
|
|
1305
1314
|
"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060": "指定發出檔案時要用的行尾順序: 'CRLF' (DOS) 或 'LF' (UNIX)。",
|
|
1306
|
-
"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707": "指定 .tsbuildinfo 累加編譯檔案的資料夾。",
|
|
1307
1315
|
"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004": "指定偵錯工具尋找 TypeScript 檔案的位置,而非原始檔位置。",
|
|
1308
1316
|
"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655": "指定偵錯工具尋找對應檔的位置,而非產生的位置。",
|
|
1309
|
-
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "
|
|
1317
|
+
"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656": "指定用來檢查來自 'node_modules' 之 JavaScript 檔案的資料夾深度上限。僅適用於 'allowJs'。",
|
|
1310
1318
|
"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238": "指定用於匯入 `jsx` 與 `jsxs` 工廠函式的模組指定名稱。例如,傳送表情符號",
|
|
1311
|
-
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "
|
|
1319
|
+
"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686": "指定 'createElement' 叫用的物件。這僅適用於在以 'react' JSX 發出為目標時。",
|
|
1312
1320
|
"Specify_the_output_directory_for_generated_declaration_files_6613": "指定產生的宣告檔案的輸出目錄。",
|
|
1321
|
+
"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707": "指定 .tsbuildinfo 累加編譯檔案的路徑。",
|
|
1313
1322
|
"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058": "指定輸入檔的根目錄。用以控制具有 --outDir 的輸出目錄結構。",
|
|
1314
1323
|
"Specify_the_root_folder_within_your_source_files_6690": "指定來源檔案內的根資料夾。",
|
|
1315
1324
|
"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695": "指定偵錯工具尋找參考原始程式碼的根路徑。",
|
|
@@ -1339,7 +1348,7 @@
|
|
|
1339
1348
|
"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337": "建構函式外部或建構函式內的巢狀函式中不允許 super 呼叫。",
|
|
1340
1349
|
"Suppress_excess_property_checks_for_object_literals_6072": "不對物件常值進行多餘的屬性檢查。",
|
|
1341
1350
|
"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055": "針對缺少索引簽章的索引物件隱藏 noImplicitAny 錯誤。",
|
|
1342
|
-
"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "針對缺少索引簽章的物件編製索引時,隱藏
|
|
1351
|
+
"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703": "針對缺少索引簽章的物件編製索引時,隱藏 'noImplicitAny' 錯誤。",
|
|
1343
1352
|
"Switch_each_misused_0_to_1_95138": "將每個誤用的 '{0}' 切換成 '{1}'",
|
|
1344
1353
|
"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704": "在不支援原生遞迴監視之平台上,同步呼叫回呼並更新目錄監控程式的狀態。",
|
|
1345
1354
|
"Syntax_Colon_0_6023": "語法: {0}",
|
|
@@ -1407,7 +1416,7 @@
|
|
|
1407
1416
|
"The_operand_of_a_delete_operator_must_be_optional_2790": "'delete' 運算子的運算元必須是非必須。",
|
|
1408
1417
|
"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777": "遞增或遞減運算子的運算元不可為選擇性屬性存取。",
|
|
1409
1418
|
"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357": "遞增或遞減運算子的運算元必須是變數或屬性存取。",
|
|
1410
|
-
"
|
|
1419
|
+
"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007": "剖析器需要找到 '{1}',以對應此處的 '{0}' 權杖。",
|
|
1411
1420
|
"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "無法在此類別內的類型 '{1}' 上存取屬性 '{0}',原因是另一個拼字相同的私人識別碼已將其陰影。",
|
|
1412
1421
|
"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' 存取子的傳回型別必須可指派給其 'set' 存取子類型",
|
|
1413
1422
|
"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "參數裝飾項目函式的傳回型別必須是 'void' 或 'any'。",
|
|
@@ -1473,6 +1482,7 @@
|
|
|
1473
1482
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "此語法需要已匯入的協助程式,但找不到模組 '{0}'。",
|
|
1474
1483
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "此語法需要名為 '{1}' 的已匯入協助程式,但其不存在於 '{0}' 中。請考慮升級您的 '{0}' 版本。",
|
|
1475
1484
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "此語法需要名為 '{1}' 且具有 {2} 參數的匯入協助程式,其與 '{0}' 中的參數不相容。請考慮升級 '{0}' 的版本。",
|
|
1485
|
+
"This_type_parameter_probably_needs_an_extends_object_constraint_2208": "此類型參數可能需要 'extends object' 限制式。",
|
|
1476
1486
|
"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' 運算式。",
|
|
1477
1487
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 檔案中的最上層宣告必須以 'declare' 或 'export' 修飾元開頭。",
|
|
1478
1488
|
"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' 迴圈。",
|
|
@@ -1492,6 +1502,7 @@
|
|
|
1492
1502
|
"Type_0_has_no_construct_signatures_2761": "類型 '{0}' 沒有任何建構簽章。",
|
|
1493
1503
|
"Type_0_has_no_matching_index_signature_for_type_1_2537": "類型 '{0}' 沒有與類型 '{1}' 相符的索引簽章。",
|
|
1494
1504
|
"Type_0_has_no_properties_in_common_with_type_1_2559": "類型 '{0}' 與類型 '{1}' 沒有任何共通的屬性。",
|
|
1505
|
+
"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "類型 '{0}' 沒有適用類型引數清單的簽章。",
|
|
1495
1506
|
"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "類型 '{0}' 在類型 '{1}' 中缺少下列屬性: {2}",
|
|
1496
1507
|
"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "類型 '{0}' 在類型 '{1}' 中缺少下列屬性: {2},以及另外 {3} 個。",
|
|
1497
1508
|
"Type_0_is_not_a_constructor_function_type_2507": "類型 '{0}' 不是建構函式類型。",
|
|
@@ -1504,6 +1515,7 @@
|
|
|
1504
1515
|
"Type_0_is_not_assignable_to_type_1_2322": "類型 '{0}' 不可指派給類型 '{1}'。",
|
|
1505
1516
|
"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "不得將類型 '{0}' 指派給類型 '{1}'。您指的是 '{2}' 嗎?",
|
|
1506
1517
|
"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "無法將類型 '{0}' 指派給類型 '{1}'。有兩種使用此名稱的不同類型存在,但彼此並不相關。",
|
|
1518
|
+
"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "無法將型別 '{0}' 指派給型別 '{1}',如變異數註釋所隱含。",
|
|
1507
1519
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標屬性的類型。",
|
|
1508
1520
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標的類型。",
|
|
1509
1521
|
"Type_0_is_not_comparable_to_type_1_2678": "類型 '{0}' 無法和類型 '{1}' 比較。",
|
|
@@ -1527,9 +1539,9 @@
|
|
|
1527
1539
|
"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "類型判斷提示運算式只可用於 TypeScript 檔案中。",
|
|
1528
1540
|
"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "來源中位於 {0} 的類型與目標中位於 {1} 的類型不相容。",
|
|
1529
1541
|
"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "來源中位於 {0} 到 {1} 的類型與目標中位於 {2} 的類型不相容。",
|
|
1530
|
-
"Type_catch_clause_variables_as_unknown_instead_of_any_6803": "將 catch 子句變數輸入為 'unknown' 而非 'any'。",
|
|
1531
1542
|
"Type_declaration_files_to_be_included_in_compilation_6124": "要包含在編譯內的類型宣告檔案。",
|
|
1532
1543
|
"Type_expected_1110": "必須是類型。",
|
|
1544
|
+
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "輸入匯入判斷提示應該只有一個索引鍵 - 'resolution-mode' - 值為 'import' 或 'require'。",
|
|
1533
1545
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "類型具現化過深,可能會有無限深度。",
|
|
1534
1546
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "類型在其本身 'then' 方法的完成回撥中直接或間接受到參考。",
|
|
1535
1547
|
"Type_library_referenced_via_0_from_file_1_1402": "透過 '{0}' 從檔案 '{1}' 參考的型別程式庫",
|
|
@@ -1622,13 +1634,13 @@
|
|
|
1622
1634
|
"Variable_declaration_not_allowed_at_this_location_1440": "此位置不允許變數宣告。",
|
|
1623
1635
|
"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "來源中位於 {0} 的可變元素與目標中位於 {1} 的元素不相符。",
|
|
1624
1636
|
"Version_0_6029": "版本 {0}",
|
|
1625
|
-
"
|
|
1637
|
+
"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110": "瀏覽 https://aka.ms/tsconfig 以閱讀此檔案的詳細資訊",
|
|
1626
1638
|
"WATCH_OPTIONS_6918": "監看式選項",
|
|
1627
1639
|
"Watch_and_Build_Modes_6250": "觀看及建置模式",
|
|
1628
1640
|
"Watch_input_files_6005": "監看輸入檔。",
|
|
1629
1641
|
"Watch_option_0_requires_a_value_of_type_1_5080": "監看選項 '{0}' 需要 {1} 類型的值。",
|
|
1630
1642
|
"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "指派函式時,請檢查以確認參數,而且傳回值是子類型相容的。",
|
|
1631
|
-
"When_type_checking_take_into_account_null_and_undefined_6699": "當型別檢查時,請將
|
|
1643
|
+
"When_type_checking_take_into_account_null_and_undefined_6699": "當型別檢查時,請將 'null' 和 'undefined' 納入考慮。",
|
|
1632
1644
|
"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "是否要將已過期的主控台輸出,維持在監看模式下,而非清除螢幕。",
|
|
1633
1645
|
"Wrap_all_invalid_characters_in_an_expression_container_95109": "將所有無效字元包裝在運算式容器中",
|
|
1634
1646
|
"Wrap_all_object_literal_with_parentheses_95116": "使用括弧括住所有物件常值",
|
|
@@ -1681,10 +1693,12 @@
|
|
|
1681
1693
|
"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783": "多次指定 '{0}',因此將會覆寫此使用方式。",
|
|
1682
1694
|
"_0_list_cannot_be_empty_1097": "'{0}' 清單不得為空白。",
|
|
1683
1695
|
"_0_modifier_already_seen_1030": "已有 '{0}' 修飾元。",
|
|
1696
|
+
"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾元只能出現在類別、介面或型別別名的型別參數上",
|
|
1684
1697
|
"_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "建構函式宣告不得有 '{0}' 修飾元。",
|
|
1685
1698
|
"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "模組或命名空間元素不能有 '{0}' 修飾元。",
|
|
1686
1699
|
"_0_modifier_cannot_appear_on_a_parameter_1090": "參數不得有 '{0}' 修飾元。",
|
|
1687
1700
|
"_0_modifier_cannot_appear_on_a_type_member_1070": "類型成員不能有 '{0}' 修飾元。",
|
|
1701
|
+
"_0_modifier_cannot_appear_on_a_type_parameter_1273": "型別參數上不能出現 '{0}' 修飾元",
|
|
1688
1702
|
"_0_modifier_cannot_appear_on_an_index_signature_1071": "索引簽章不能有 '{0}' 修飾元。",
|
|
1689
1703
|
"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "不得在此種類別項目中使用 '{0}' 修飾元。",
|
|
1690
1704
|
"_0_modifier_cannot_be_used_here_1042": "無法在此處使用 '{0}' 修飾元。",
|
|
@@ -1711,6 +1725,7 @@
|
|
|
1711
1725
|
"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾元只能出現在類別宣告、方法宣告或屬性宣告。",
|
|
1712
1726
|
"and_here_6204": "及此處。",
|
|
1713
1727
|
"arguments_cannot_be_referenced_in_property_initializers_2815": "屬性初始設定式中不得參考 'arguments'。",
|
|
1728
|
+
"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: node12+) 的檔案作為模組。",
|
|
1714
1729
|
"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "當檔案為模組時,只允許 'await' 運算式位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。",
|
|
1715
1730
|
"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "只允許在非同步函式中與模組的最上層使用 'await' 運算式。",
|
|
1716
1731
|
"await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 運算式不得用於參數初始設定式。",
|
|
@@ -1772,6 +1787,9 @@
|
|
|
1772
1787
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾元只能出現在屬性宣告或索引簽章。",
|
|
1773
1788
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 類型修飾元只可用於陣列與元組常值類型。",
|
|
1774
1789
|
"require_call_may_be_converted_to_an_import_80005": "'require' 呼叫可能會轉換為匯入。",
|
|
1790
|
+
"resolution_mode_can_only_be_set_for_type_only_imports_1454": "只能針對僅限輸入的匯入設定 'resolution-mode'。",
|
|
1791
|
+
"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode' 是輸入匯入判斷提示唯一有效的索引鍵。",
|
|
1792
|
+
"resolution_mode_should_be_either_require_or_import_1453": "`resolution-mode` 應該是 `require` 或 `import`。",
|
|
1775
1793
|
"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 選項已設定。該選項將用於解析相對的模組名稱 '{0}'。",
|
|
1776
1794
|
"super_can_only_be_referenced_in_a_derived_class_2335": "只有衍生類別中才可參考 'super'。",
|
|
1777
1795
|
"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "只有在衍生類別或物件常值運算式的成員中才可參考 'super'。",
|
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": "4.
|
|
5
|
+
"version": "4.7.0-beta",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"packageManager": "npm@6.14.15",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@octokit/rest": "latest",
|
|
34
|
-
"@types/browserify": "latest",
|
|
35
34
|
"@types/chai": "latest",
|
|
36
35
|
"@types/convert-source-map": "latest",
|
|
37
36
|
"@types/glob": "latest",
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
"@types/gulp-newer": "latest",
|
|
41
40
|
"@types/gulp-rename": "0.0.33",
|
|
42
41
|
"@types/gulp-sourcemaps": "0.0.32",
|
|
43
|
-
"@types/jake": "latest",
|
|
44
42
|
"@types/merge2": "latest",
|
|
45
43
|
"@types/microsoft__typescript-etw": "latest",
|
|
46
44
|
"@types/minimatch": "latest",
|
|
@@ -52,15 +50,12 @@
|
|
|
52
50
|
"@types/node-fetch": "^2.3.4",
|
|
53
51
|
"@types/q": "latest",
|
|
54
52
|
"@types/source-map-support": "latest",
|
|
55
|
-
"@types/through2": "latest",
|
|
56
53
|
"@types/xml2js": "^0.4.0",
|
|
57
54
|
"@typescript-eslint/eslint-plugin": "^4.28.0",
|
|
58
55
|
"@typescript-eslint/experimental-utils": "^4.28.0",
|
|
59
56
|
"@typescript-eslint/parser": "^4.28.0",
|
|
60
57
|
"async": "latest",
|
|
61
58
|
"azure-devops-node-api": "^11.0.1",
|
|
62
|
-
"browser-resolve": "^1.11.2",
|
|
63
|
-
"browserify": "latest",
|
|
64
59
|
"chai": "latest",
|
|
65
60
|
"chalk": "^4.1.2",
|
|
66
61
|
"convert-source-map": "latest",
|
|
@@ -87,12 +82,9 @@
|
|
|
87
82
|
"mocha-fivemat-progress-reporter": "latest",
|
|
88
83
|
"ms": "^2.1.3",
|
|
89
84
|
"node-fetch": "^2.6.1",
|
|
90
|
-
"plugin-error": "latest",
|
|
91
|
-
"pretty-hrtime": "^1.0.3",
|
|
92
85
|
"prex": "^0.4.3",
|
|
93
86
|
"q": "latest",
|
|
94
87
|
"source-map-support": "latest",
|
|
95
|
-
"through2": "latest",
|
|
96
88
|
"typescript": "^4.5.5",
|
|
97
89
|
"vinyl": "latest",
|
|
98
90
|
"vinyl-sourcemaps-apply": "latest",
|
|
@@ -109,7 +101,6 @@
|
|
|
109
101
|
"start": "node lib/tsc",
|
|
110
102
|
"clean": "gulp clean",
|
|
111
103
|
"gulp": "gulp",
|
|
112
|
-
"jake": "gulp",
|
|
113
104
|
"lint": "gulp lint",
|
|
114
105
|
"lint:ci": "gulp lint --ci",
|
|
115
106
|
"lint:compiler": "gulp lint-compiler",
|