typescript 4.6.1-rc → 4.7.0-dev.20220218

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.
@@ -54,7 +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
- "A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "只允许在命名空间或模块中使用命名空间声明。",
57
+ "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空间声明只允许位于命名空间或模块的顶层。",
58
58
  "A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384": "具有类型参数的 \"new\" 表达式的后面必须始终是带括号的参数列表。",
59
59
  "A_non_dry_build_would_build_project_0_6357": "非 -dry 生成将生成项目“{0}”",
60
60
  "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 生成将删除以下文件: {0}",
@@ -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
- "An_export_declaration_can_only_be_used_in_a_module_1233": "导出声明只能在模块中使用。",
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": "导入别名不能使用“导入类型”",
211
- "An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232": "导入声明只能在命名空间或模块中使用。",
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": "索引签名不能包含 rest 参数。",
@@ -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": "无法更新项目 \"{0}\" 的输出,因为读取文件 \"{1}\" 时出错",
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” 标志时,无法在类型或仅类型命名空间上使用“导出导入”。",
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}”用作值。",
@@ -488,6 +491,8 @@
488
491
  "Declare_property_0_90016": "声明属性“{0}”",
489
492
  "Declare_static_method_0_90024": "声明静态方法“{0}”",
490
493
  "Declare_static_property_0_90027": "声明静态属性“{0}”",
494
+ "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "装饰器函数返回类型“{0}”不可分配到类型“{1}”。",
495
+ "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "装饰器函数返回类型为“{0}”,但预期为“void”或“any”。",
491
496
  "Decorators_are_not_valid_here_1206": "修饰器在此处无效。",
492
497
  "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "不能向多个同名的 get/set 访问器应用修饰器。",
493
498
  "Decorators_may_not_be_applied_to_this_parameters_1433": "修饰器不能应用于 “this” 参数。",
@@ -498,7 +503,9 @@
498
503
  "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "以下标识符的定义与另一个文件中的定义冲突: {0}",
499
504
  "Delete_all_unused_declarations_95024": "删除未使用的所有声明",
500
505
  "Delete_all_unused_imports_95147": "删除所有未使用的导入",
506
+ "Delete_all_unused_param_tags_95172": "删除所有未使用的 “@param” 标记",
501
507
  "Delete_the_outputs_of_all_projects_6365": "删除所有项目的输出",
508
+ "Delete_unused_param_tag_0_95171": "删除未使用的 “@param” 标记“{0}”",
502
509
  "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[已弃用] 请改用 \"--jsxFactory\"。已 \"react\" JSX 发出设为目标时,请指定要为 createElement 调用的对象",
503
510
  "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[已弃用] 请改用 \"--outFile\"。连接并发出到单个文件的输出",
504
511
  "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[已弃用] 请改用 \"--skipLibCheck\"。请跳过默认库声明文件的类型检查。",
@@ -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": "将所有未使用的 \"infer\" 替换为 \"unknown\"",
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": "在位置“{1}”的缓存中找到类型引用指令“{0}”的解析。",
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}”-“{2}”解析模块名“{0}”。",
@@ -1772,6 +1781,7 @@
1772
1781
  "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "\"readonly\" 修饰符仅可出现在属性声明或索引签名中。",
1773
1782
  "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "仅允许对数组和元组文本类型使用 \"readonly\" 类型修饰符。",
1774
1783
  "require_call_may_be_converted_to_an_import_80005": "可将“要求”调用转换为导入。",
1784
+ "resolution_mode_should_be_either_require_or_import_1453": "“resolution-mode”应为“require”或“import”。",
1775
1785
  "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "设置了 \"rootDirs\" 选项,可将其用于解析相对模块名称“{0}”。",
1776
1786
  "super_can_only_be_referenced_in_a_derived_class_2335": "只能在派生类中引用 \"super\"。",
1777
1787
  "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660": "仅可在派生类或对象文字表达式的成员中引用 \"super\"。",
@@ -54,7 +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
- "A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "只有命名空間或模組才允許命名空間宣告。",
57
+ "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空間宣告只允許在命名空間或模組的頂層。",
58
58
  "A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384": "具有型別引數的 'new' 運算式後面必須永遠接著以括號括住的引數清單。",
59
59
  "A_non_dry_build_would_build_project_0_6357": "非 -dry 組建會建置專案 '{0}'",
60
60
  "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 組建會刪除下列檔案: {0}",
@@ -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
- "An_export_declaration_can_only_be_used_in_a_module_1233": "匯出宣告只可用於模組中。",
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
- "An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232": "匯入宣告只可用於命名空間或模組中。",
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": "索引簽章不得有剩餘參數。",
@@ -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}' 作為值。",
@@ -488,6 +491,8 @@
488
491
  "Declare_property_0_90016": "宣告屬性 '{0}'",
489
492
  "Declare_static_method_0_90024": "宣告靜態方法 '{0}'",
490
493
  "Declare_static_property_0_90027": "宣告靜態屬性 '{0}'",
494
+ "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "裝飾項目函式傳回類型 '{0}' 無法指派給類型 '{1}'。",
495
+ "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "裝飾項目函式傳回類型是 '{0}',但必須是 'void' 或 'any'。",
491
496
  "Decorators_are_not_valid_here_1206": "裝飾項目在此處無效。",
492
497
  "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "無法將裝飾項目套用至多個同名的 get/set 存取子。",
493
498
  "Decorators_may_not_be_applied_to_this_parameters_1433": "裝飾項目無法套用至 'this' 參數。",
@@ -498,7 +503,9 @@
498
503
  "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "下列識別碼的定義與其他檔案中的定義衝突: {0}",
499
504
  "Delete_all_unused_declarations_95024": "刪除所有未使用的宣告",
500
505
  "Delete_all_unused_imports_95147": "刪除所有未使用的匯入",
506
+ "Delete_all_unused_param_tags_95172": "刪除所有未使用的 '@param' 標籤",
501
507
  "Delete_the_outputs_of_all_projects_6365": "刪除所有專案的輸出",
508
+ "Delete_unused_param_tag_0_95171": "刪除未使用的 '@param' 標記 '{0}'",
502
509
  "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[即將淘汰] 請改用 '--jsxFactory'。當目標為 'react' JSX 發出時,為 createElement 指定所叫用的物件",
503
510
  "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[即將淘汰] 請改用 '--outFile'。 串連輸出並將其發出到單一檔案",
504
511
  "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[即將淘汰] 請改用 '--skipLibCheck'。跳過預設程式庫宣告檔案的類型檢查。",
@@ -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}'。",
@@ -1772,6 +1781,7 @@
1772
1781
  "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾元只能出現在屬性宣告或索引簽章。",
1773
1782
  "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 類型修飾元只可用於陣列與元組常值類型。",
1774
1783
  "require_call_may_be_converted_to_an_import_80005": "'require' 呼叫可能會轉換為匯入。",
1784
+ "resolution_mode_should_be_either_require_or_import_1453": "`resolution-mode` 應該是 `require` 或 `import`。",
1775
1785
  "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 選項已設定。該選項將用於解析相對的模組名稱 '{0}'。",
1776
1786
  "super_can_only_be_referenced_in_a_derived_class_2335": "只有衍生類別中才可參考 'super'。",
1777
1787
  "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.6.1-rc",
5
+ "version": "4.7.0-dev.20220218",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -129,4 +129,4 @@
129
129
  "volta": {
130
130
  "node": "14.15.5"
131
131
  }
132
- }
132
+ }