typescript 4.6.0-dev.20220211 → 4.7.0-dev.20220217
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 +9 -3
- package/lib/de/diagnosticMessages.generated.json +9 -3
- package/lib/es/diagnosticMessages.generated.json +9 -3
- package/lib/fr/diagnosticMessages.generated.json +9 -3
- package/lib/it/diagnosticMessages.generated.json +9 -3
- package/lib/ja/diagnosticMessages.generated.json +9 -3
- package/lib/ko/diagnosticMessages.generated.json +9 -3
- package/lib/lib.es2020.intl.d.ts +4 -0
- package/lib/lib.esnext.intl.d.ts +4 -1
- package/lib/pl/diagnosticMessages.generated.json +9 -3
- package/lib/protocol.d.ts +7 -0
- package/lib/pt-br/diagnosticMessages.generated.json +9 -3
- package/lib/ru/diagnosticMessages.generated.json +9 -3
- package/lib/tr/diagnosticMessages.generated.json +9 -3
- package/lib/tsc.js +658 -490
- package/lib/tsserver.js +883 -611
- package/lib/tsserverlibrary.d.ts +32 -26
- package/lib/tsserverlibrary.js +883 -611
- package/lib/typescript.d.ts +24 -25
- package/lib/typescript.js +881 -609
- package/lib/typescriptServices.d.ts +24 -25
- package/lib/typescriptServices.js +881 -609
- package/lib/typingsInstaller.js +788 -593
- package/lib/zh-cn/diagnosticMessages.generated.json +9 -3
- package/lib/zh-tw/diagnosticMessages.generated.json +9 -3
- package/package.json +1 -1
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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}”用作值。",
|
|
@@ -498,7 +501,9 @@
|
|
|
498
501
|
"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "以下标识符的定义与另一个文件中的定义冲突: {0}",
|
|
499
502
|
"Delete_all_unused_declarations_95024": "删除未使用的所有声明",
|
|
500
503
|
"Delete_all_unused_imports_95147": "删除所有未使用的导入",
|
|
504
|
+
"Delete_all_unused_param_tags_95172": "删除所有未使用的 “@param” 标记",
|
|
501
505
|
"Delete_the_outputs_of_all_projects_6365": "删除所有项目的输出",
|
|
506
|
+
"Delete_unused_param_tag_0_95171": "删除未使用的 “@param” 标记“{0}”",
|
|
502
507
|
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[已弃用] 请改用 \"--jsxFactory\"。已 \"react\" JSX 发出设为目标时,请指定要为 createElement 调用的对象",
|
|
503
508
|
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[已弃用] 请改用 \"--outFile\"。连接并发出到单个文件的输出",
|
|
504
509
|
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[已弃用] 请改用 \"--skipLibCheck\"。请跳过默认库声明文件的类型检查。",
|
|
@@ -1178,6 +1183,7 @@
|
|
|
1178
1183
|
"Remove_unused_destructuring_declaration_90039": "删除未使用的解构声明",
|
|
1179
1184
|
"Remove_unused_label_95053": "删除未使用的标签",
|
|
1180
1185
|
"Remove_variable_statement_90010": "删除变量语句",
|
|
1186
|
+
"Rename_param_tag_name_0_to_1_95173": "将 “@param” 标记名称“{0}”重命名为“{1}”",
|
|
1181
1187
|
"Replace_0_with_Promise_1_90036": "将 \"{0}\" 替换为 \"Promise<{1}>\"",
|
|
1182
1188
|
"Replace_all_unused_infer_with_unknown_90031": "将所有未使用的 \"infer\" 替换为 \"unknown\"",
|
|
1183
1189
|
"Replace_import_with_0_95015": "用“{0}”替换导入。",
|
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
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": "索引簽章不得有剩餘參數。",
|
|
@@ -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}' 作為值。",
|
|
@@ -498,7 +501,9 @@
|
|
|
498
501
|
"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "下列識別碼的定義與其他檔案中的定義衝突: {0}",
|
|
499
502
|
"Delete_all_unused_declarations_95024": "刪除所有未使用的宣告",
|
|
500
503
|
"Delete_all_unused_imports_95147": "刪除所有未使用的匯入",
|
|
504
|
+
"Delete_all_unused_param_tags_95172": "刪除所有未使用的 '@param' 標籤",
|
|
501
505
|
"Delete_the_outputs_of_all_projects_6365": "刪除所有專案的輸出",
|
|
506
|
+
"Delete_unused_param_tag_0_95171": "刪除未使用的 '@param' 標記 '{0}'",
|
|
502
507
|
"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084": "[即將淘汰] 請改用 '--jsxFactory'。當目標為 'react' JSX 發出時,為 createElement 指定所叫用的物件",
|
|
503
508
|
"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170": "[即將淘汰] 請改用 '--outFile'。 串連輸出並將其發出到單一檔案",
|
|
504
509
|
"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160": "[即將淘汰] 請改用 '--skipLibCheck'。跳過預設程式庫宣告檔案的類型檢查。",
|
|
@@ -1178,6 +1183,7 @@
|
|
|
1178
1183
|
"Remove_unused_destructuring_declaration_90039": "移除未使用的解構宣告",
|
|
1179
1184
|
"Remove_unused_label_95053": "移除未使用的標籤",
|
|
1180
1185
|
"Remove_variable_statement_90010": "移除變數陳述式",
|
|
1186
|
+
"Rename_param_tag_name_0_to_1_95173": "將 '@param' 標籤名稱 '{0}' 重新命名為'{1}'",
|
|
1181
1187
|
"Replace_0_with_Promise_1_90036": "將 '{0}' 取代為 'Promise<{1}>'",
|
|
1182
1188
|
"Replace_all_unused_infer_with_unknown_90031": "以 'unknown' 取代所有未使用的 'infer'",
|
|
1183
1189
|
"Replace_import_with_0_95015": "以 '{0}' 取代匯入。",
|
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-dev.20220217",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|