typescript 4.5.0-dev.20210924 → 4.5.0-dev.20210928
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 +2 -1
- package/lib/de/diagnosticMessages.generated.json +17 -5
- package/lib/es/diagnosticMessages.generated.json +2 -1
- package/lib/fr/diagnosticMessages.generated.json +2 -1
- package/lib/it/diagnosticMessages.generated.json +17 -5
- package/lib/ja/diagnosticMessages.generated.json +2 -1
- package/lib/ko/diagnosticMessages.generated.json +17 -5
- package/lib/lib.dom.d.ts +669 -1896
- package/lib/lib.dom.iterable.d.ts +16 -48
- package/lib/lib.webworker.d.ts +183 -520
- package/lib/lib.webworker.iterable.d.ts +10 -30
- package/lib/pl/diagnosticMessages.generated.json +2 -1
- package/lib/pt-br/diagnosticMessages.generated.json +2 -1
- package/lib/ru/diagnosticMessages.generated.json +17 -5
- package/lib/tr/diagnosticMessages.generated.json +2 -1
- package/lib/tsc.js +1364 -426
- package/lib/tsserver.js +2027 -693
- package/lib/tsserverlibrary.d.ts +76 -23
- package/lib/tsserverlibrary.js +2027 -693
- package/lib/typescript.d.ts +74 -21
- package/lib/typescript.js +2022 -687
- package/lib/typescriptServices.d.ts +74 -21
- package/lib/typescriptServices.js +2022 -687
- package/lib/typingsInstaller.js +1544 -475
- package/lib/zh-cn/diagnosticMessages.generated.json +2 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +17 -5
- package/package.json +1 -1
|
@@ -1052,6 +1052,7 @@
|
|
|
1052
1052
|
"Private_accessor_was_defined_without_a_getter_2806": "定义了专用访问器,但没有 Getter。",
|
|
1053
1053
|
"Private_identifiers_are_not_allowed_in_variable_declarations_18029": "不允许在变量声明中使用专用标识符。",
|
|
1054
1054
|
"Private_identifiers_are_not_allowed_outside_class_bodies_18016": "不允许在类主体之外使用专用标识符。",
|
|
1055
|
+
"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "专用标识符仅允许在类主体中使用,并且只能用作类成员声明的一部分、属性访问或用在 \"in\" 表达式的左侧",
|
|
1055
1056
|
"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "专用标识符仅在面向 ECMAScript 2015 和更高版本时可用。",
|
|
1056
1057
|
"Private_identifiers_cannot_be_used_as_parameters_18009": "不能将专用标识符用作参数。",
|
|
1057
1058
|
"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "不能在类型参数上访问专用或受保护的成员 \"{0}\"。",
|
|
@@ -1376,7 +1377,7 @@
|
|
|
1376
1377
|
"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算术运算左侧必须是 \"any\"、\"number\"、\"bigint\" 或枚举类型。",
|
|
1377
1378
|
"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "赋值表达式的左侧不能是可选属性访问。",
|
|
1378
1379
|
"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "赋值表达式的左侧必须是变量或属性访问。",
|
|
1379
|
-
"
|
|
1380
|
+
"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\"。",
|
|
1380
1381
|
"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "\"instanceof\" 表达式左侧必须是 \"any\" 类型、对象类型或类型参数。",
|
|
1381
1382
|
"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "向用户显示消息时所用的区域设置(例如,\"en-us\")",
|
|
1382
1383
|
"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "用于搜索 node_modules 和加载 JavaScript 文件的最大依赖项深度。",
|
|
@@ -507,6 +507,7 @@
|
|
|
507
507
|
"Did_you_mean_to_use_new_with_this_expression_6213": "您是要對此運算式使用 'new' 嗎?",
|
|
508
508
|
"Digit_expected_1124": "必須是數字。",
|
|
509
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 範圍內。將不會解析匯入。",
|
|
510
511
|
"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669": "停用在發出的 JavaScript 檔案中新增 'use strict' 指示詞。",
|
|
511
512
|
"Disable_checking_for_this_file_90018": "停用此檔案的檢查",
|
|
512
513
|
"Disable_emitting_comments_6688": "停用發出註解。",
|
|
@@ -560,7 +561,7 @@
|
|
|
560
561
|
"Duplicate_property_0_2718": "屬性 '{0}' 重複。",
|
|
561
562
|
"Dynamic_import_cannot_have_type_arguments_1326": "動態匯入不可有型別引數。",
|
|
562
563
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。",
|
|
563
|
-
"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323": "只有在 '--module' 旗標設定為 'es2020'、'esnext'、'commonjs'、'amd'、'system' 或 '
|
|
564
|
+
"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323": "只有在 '--module' 旗標設定為 'es2020'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node12' 或 'nodenext',才支援動態匯入。",
|
|
564
565
|
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動態匯入只能接受模組指定名稱和選擇性判斷提示來做為引數",
|
|
565
566
|
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324": "當 '--module' 選項設定為 'esnext' 時,動態匯入只支援第二個引數。",
|
|
566
567
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "等位型別 '{0}' 的每個成員都有建構簽章,但這些簽章都互不相容。",
|
|
@@ -639,6 +640,7 @@
|
|
|
639
640
|
"Export_assignment_is_not_supported_when_module_flag_is_system_1218": "當 '--module' 旗標為 'system' 時,不支援匯出指派。",
|
|
640
641
|
"Export_declaration_conflicts_with_exported_declaration_of_0_2484": "匯出宣告與匯出的 '{0}' 宣告相衝突。",
|
|
641
642
|
"Export_declarations_are_not_permitted_in_a_namespace_1194": "在命名空間中不可使用匯出宣告。",
|
|
643
|
+
"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276": "在路徑 '{0}' 的 package.js 範圍中不存在匯出指定名稱 '{1}'。",
|
|
642
644
|
"Exported_type_alias_0_has_or_is_using_private_name_1_4081": "匯出的類型別名 '{0}' 具有或使用私用名稱 '{1}'。",
|
|
643
645
|
"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084": "匯出的類型別名 '{0}' 具有或使用模組 {2} 中的私人名稱 '{1}'。",
|
|
644
646
|
"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023": "匯出的變數 '{0}' 具有或使用外部模組 {2} 中的名稱 '{1}',但無法命名。",
|
|
@@ -771,6 +773,7 @@
|
|
|
771
773
|
"Import_may_be_converted_to_a_default_import_80003": "匯入可轉換成預設匯入。",
|
|
772
774
|
"Import_name_cannot_be_0_2438": "匯入名稱不得為 '{0}'。",
|
|
773
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}'。",
|
|
774
777
|
"Imported_via_0_from_file_1_1393": "透過 {0} 從檔案 '{1}' 匯入",
|
|
775
778
|
"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395": "透過 {0} 從檔案 '{1}' 匯入,以 CompilerOptions 指定的方式匯入 'ImportHelpers'",
|
|
776
779
|
"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397": "透過 {0} 從檔案 '{1}' 匯入,匯入 'jsx' 和 'jsxs' 處理站函式",
|
|
@@ -812,6 +815,7 @@
|
|
|
812
815
|
"Interop_Constraints_6252": "Interop 條件約束",
|
|
813
816
|
"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243": "將選用屬性類型解譯為寫入,而非新增 'undefined'。",
|
|
814
817
|
"Invalid_character_1127": "無效的字元。",
|
|
818
|
+
"Invalid_import_specifier_0_has_no_possible_resolutions_6272": "無效的匯入指定名稱 '{0}' 沒有可能的解決方法。",
|
|
815
819
|
"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "增強中的模組名稱無效。模組 '{0}' 於 '{1}' 解析至不具類型的模組,其無法擴增。",
|
|
816
820
|
"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "增強指定中的模組名稱無效,找不到模組 '{0}'。",
|
|
817
821
|
"Invalid_reference_directive_syntax_1084": "無效的 'reference' 指示詞語法。",
|
|
@@ -882,6 +886,7 @@
|
|
|
882
886
|
"Method_not_implemented_95158": "未實作方法。",
|
|
883
887
|
"Modifiers_cannot_appear_here_1184": "此處不得出現修飾元。",
|
|
884
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 模組。請改為使用動態匯入。",
|
|
885
890
|
"Module_0_declares_1_locally_but_it_is_exported_as_2_2460": "模組 '{0}' 區域性地宣告 '{1}',但卻將該模組匯出為 '{2}'。",
|
|
886
891
|
"Module_0_declares_1_locally_but_it_is_not_exported_2459": "模組 '{0}' 區域性地宣告 '{1}',但並未匯出該模組。",
|
|
887
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}')' 嗎?",
|
|
@@ -1052,6 +1057,7 @@
|
|
|
1052
1057
|
"Private_accessor_was_defined_without_a_getter_2806": "私人存取子已在不使用 getter 的情況下定義。",
|
|
1053
1058
|
"Private_identifiers_are_not_allowed_in_variable_declarations_18029": "變數宣告中不允許私人識別碼。",
|
|
1054
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' 運算式左側的一部分使用",
|
|
1055
1061
|
"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "只有當目標為 ECMAScript 2015 及更新版本時,才可使用私人識別碼。",
|
|
1056
1062
|
"Private_identifiers_cannot_be_used_as_parameters_18009": "私人識別碼不可用作為參數。",
|
|
1057
1063
|
"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "無法在型別參數上存取私人或受保護的成員 '{0}'。",
|
|
@@ -1353,7 +1359,8 @@
|
|
|
1353
1359
|
"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060": "Promise 的 'then' 方法第一個參數必須為回撥。",
|
|
1354
1360
|
"The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全域類型 'JSX.{0}' 的屬性不得超過一個。",
|
|
1355
1361
|
"The_implementation_signature_is_declared_here_2750": "實作簽章宣告於此處。",
|
|
1356
|
-
"
|
|
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_esnext_system_node12__1343": "只有當 '--module' 選項為 'es2020'、'esnext'、'system'、, 'node12' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。",
|
|
1357
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}' 參考的情況下命名。其可能非可攜式。必須有型別註解。",
|
|
1358
1365
|
"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' 的推斷型別參考了具有迴圈結構且不是可完整序列化的型別。必須有型別註解。",
|
|
1359
1366
|
"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' 的推斷型別參考了無法存取的 '{1}' 型別。必須有型別註解。",
|
|
@@ -1376,7 +1383,7 @@
|
|
|
1376
1383
|
"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術運算的左側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。",
|
|
1377
1384
|
"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "指派運算式的左側不可為選擇性屬性存取。",
|
|
1378
1385
|
"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "指派運算式的左邊必須是變數或屬性存取。",
|
|
1379
|
-
"
|
|
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' 類型。",
|
|
1380
1387
|
"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 運算式左側必須是類型 'any'、物件類型或型別參數。",
|
|
1381
1388
|
"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "對使用者顯示訊息時所使用的地區設定 (例如 'zh-tw')",
|
|
1382
1389
|
"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "在 node_modules 及載入 JavaScript 檔案下搜尋時的最大相依性深度。",
|
|
@@ -1445,12 +1452,14 @@
|
|
|
1445
1452
|
"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此參數屬性必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{0}' 中的成員。",
|
|
1446
1453
|
"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "因為此參數屬性會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。",
|
|
1447
1454
|
"This_spread_always_overwrites_this_property_2785": "此展開會永遠覆寫此屬性。",
|
|
1455
|
+
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此語法是保留在具有 mts 或 cts 副檔名的檔案中。新增尾端逗號或明確條件約束。",
|
|
1456
|
+
"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此語法會保留在具有 mts 或 cts 副檔名的檔案中。請改用 `as` 運算式。",
|
|
1448
1457
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "此語法需要已匯入的協助程式,但找不到模組 '{0}'。",
|
|
1449
1458
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "此語法需要名為 '{1}' 的已匯入協助程式,但其不存在於 '{0}' 中。請考慮升級您的 '{0}' 版本。",
|
|
1450
1459
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "此語法需要名為 '{1}' 且具有 {2} 參數的匯入協助程式,其與 '{0}' 中的參數不相容。請考慮升級 '{0}' 的版本。",
|
|
1451
|
-
"
|
|
1460
|
+
"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_system_or_noden_1378": "只有在 'module' 選項設定為 'esnext'、'system' 或 'nodenext',而且 'target' 選項設定為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。",
|
|
1452
1461
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 檔案中的最上層宣告必須以 'declare' 或 'export' 修飾元開頭。",
|
|
1453
|
-
"
|
|
1462
|
+
"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_system_or_nodenex_1432": "只有在 'module' 選項設為 'esnext'、'system' 或 'nodenext',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。",
|
|
1454
1463
|
"Trailing_comma_not_allowed_1009": "尾端不得為逗號。",
|
|
1455
1464
|
"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "以個別模組的形式轉換每個檔案的語言 (類似於 'ts.transpileModule')。",
|
|
1456
1465
|
"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) 檔案",
|
|
@@ -1737,6 +1746,9 @@
|
|
|
1737
1746
|
"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' 具有 'typesVersions' 項目 '{0}',其非有效的 SemVer 範圍。",
|
|
1738
1747
|
"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}' 的模式。",
|
|
1739
1748
|
"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' 具有限定版本路徑對應的 'typesVersions' 欄位。",
|
|
1749
|
+
"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274": "package.js 範圍 '{0}' 將指定名稱 '{1}' 明確對應到 Null。",
|
|
1750
|
+
"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.js 範圍 '{0}' 對指定名稱 '{1}' 的目標具有無效類型",
|
|
1751
|
+
"package_json_scope_0_has_no_imports_defined_6273": "package.js 範圍 '{0}' 沒有定義的匯入。",
|
|
1740
1752
|
"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' 選項已指定,將尋找符合模組名稱 '{0}' 的模式。",
|
|
1741
1753
|
"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾元只能出現在屬性宣告或索引簽章。",
|
|
1742
1754
|
"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 類型修飾元只可用於陣列與元組常值類型。",
|
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.0-dev.
|
|
5
|
+
"version": "4.5.0-dev.20210928",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|