typescript 4.5.0-dev.20210920 → 4.5.0-dev.20210924
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 +5 -2
- package/lib/de/diagnosticMessages.generated.json +5 -2
- package/lib/es/diagnosticMessages.generated.json +5 -2
- package/lib/fr/diagnosticMessages.generated.json +5 -2
- package/lib/it/diagnosticMessages.generated.json +5 -2
- package/lib/ja/diagnosticMessages.generated.json +5 -2
- package/lib/ko/diagnosticMessages.generated.json +5 -2
- package/lib/lib.es2021.d.ts +1 -0
- package/lib/lib.es2021.intl.d.ts +9 -0
- package/lib/lib.es5.d.ts +17 -0
- package/lib/pl/diagnosticMessages.generated.json +5 -2
- package/lib/protocol.d.ts +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +5 -2
- package/lib/ru/diagnosticMessages.generated.json +5 -2
- package/lib/tr/diagnosticMessages.generated.json +5 -2
- package/lib/tsc.js +4734 -4514
- package/lib/tsserver.js +7527 -7223
- package/lib/tsserverlibrary.d.ts +269 -240
- package/lib/tsserverlibrary.js +7527 -7223
- package/lib/typescript.d.ts +268 -240
- package/lib/typescript.js +7527 -7223
- package/lib/typescriptServices.d.ts +268 -240
- package/lib/typescriptServices.js +7527 -7223
- package/lib/typingsInstaller.js +5547 -5292
- package/lib/zh-cn/diagnosticMessages.generated.json +5 -2
- package/lib/zh-tw/diagnosticMessages.generated.json +5 -2
- package/package.json +1 -1
|
@@ -240,6 +240,7 @@
|
|
|
240
240
|
"Are_you_missing_a_semicolon_2734": "是否缺少分号?",
|
|
241
241
|
"Argument_expression_expected_1135": "应为参数表达式。",
|
|
242
242
|
"Argument_for_0_option_must_be_Colon_1_6046": "“{0}”选项的参数必须为 {1}。",
|
|
243
|
+
"Argument_of_dynamic_import_cannot_be_spread_element_1325": "动态导入的参数不能是扩展元素。",
|
|
243
244
|
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "类型“{0}”的参数不能赋给类型“{1}”的参数。",
|
|
244
245
|
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "类型为“{0}”的参数不能分配给类型为“{1}”且 “exactOptionalPropertyTypes: true” 的参数。请考虑将 “undefined” 添加到目标属性的类型。",
|
|
245
246
|
"Arguments_for_the_rest_parameter_0_were_not_provided_6236": "未提供 rest 形参“{0}”的实参。",
|
|
@@ -558,9 +559,10 @@
|
|
|
558
559
|
"Duplicate_label_0_1114": "标签“{0}”重复。",
|
|
559
560
|
"Duplicate_property_0_2718": "重复的属性 \"{0}\"。",
|
|
560
561
|
"Dynamic_import_cannot_have_type_arguments_1326": "动态导入不能含有类型参数。",
|
|
561
|
-
"Dynamic_import_must_have_one_specifier_as_an_argument_1324": "动态导入必须具有一个说明符作为参数。",
|
|
562
562
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "动态导入的说明符类型必须是 \"string\",但此处类型是 \"{0}\"。",
|
|
563
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\" 或 \"umd\" 时,才支持动态导入。",
|
|
564
|
+
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "动态导入只能接受模块说明符和可选断言作为参数",
|
|
565
|
+
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324": "只有在 \"--module\" 选项设置为 \"esnext\" 时,动态导入才支持第二个参数。",
|
|
564
566
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "联合类型 \"{0}\" 的每个成员都有构造签名,但这些签名都不能互相兼容。",
|
|
565
567
|
"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "联合类型 \"{0}\" 的每个成员都有签名,但这些签名都不能互相兼容。",
|
|
566
568
|
"Editor_Support_6249": "编辑器支持",
|
|
@@ -758,6 +760,8 @@
|
|
|
758
760
|
"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "导出的类“{0}”的 Implements 子句具有或正在使用专用名称“{1}”。",
|
|
759
761
|
"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "\"symbol\" 到 \"string\" 的隐式转换将在运行时失败。请考虑在 \"String(...)\" 中包装此表达式。",
|
|
760
762
|
"Import_0_from_module_1_90013": "从模块“{1}”导入“{0}”",
|
|
763
|
+
"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821": "只有在 \"--module\" 选项设置为 \"esnext\" 时,才支持导入断言。",
|
|
764
|
+
"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "导入断言不能用于仅类型导入或导出。",
|
|
761
765
|
"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "面向 ECMAScript 模块时,不能使用导入分配。请考虑改用 \"import * as ns from \"mod\"\"、\"import {a} from \"mod\"\"、\"import d from \"mod\"\" 或另一种模块格式。",
|
|
762
766
|
"Import_declaration_0_is_using_private_name_1_4000": "导入声明“{0}”使用的是专用名称“{1}”。",
|
|
763
767
|
"Import_declaration_conflicts_with_local_declaration_of_0_2440": "导入声明与“{0}”的局部声明冲突。",
|
|
@@ -1248,7 +1252,6 @@
|
|
|
1248
1252
|
"Source_has_0_element_s_but_target_requires_1_2618": "源具有 {0} 个元素,但目标需要 {1} 个。",
|
|
1249
1253
|
"Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "源不提供目标中位置 {0} 处所需元素的匹配项。",
|
|
1250
1254
|
"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "源不提供目标中位置 {0} 处可变元素的匹配项。",
|
|
1251
|
-
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "动态导入的说明符不能是扩散元素。",
|
|
1252
1255
|
"Specify_ECMAScript_target_version_6015": "指定 ECMAScript 目标版本。",
|
|
1253
1256
|
"Specify_JSX_code_generation_6080": "指定 JSX 代码生成。",
|
|
1254
1257
|
"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "指定将所有输出捆绑到一个 JavaScript 文件中的文件。如果 “declaration” 为 true,还要指定一个捆绑所有 .d.ts 输出的文件。",
|
|
@@ -240,6 +240,7 @@
|
|
|
240
240
|
"Are_you_missing_a_semicolon_2734": "缺少分號嗎?",
|
|
241
241
|
"Argument_expression_expected_1135": "必須是引數運算式。",
|
|
242
242
|
"Argument_for_0_option_must_be_Colon_1_6046": "'{0}' 選項的引數必須是: {1}。",
|
|
243
|
+
"Argument_of_dynamic_import_cannot_be_spread_element_1325": "動態匯入的引數不能是擴張元素。",
|
|
243
244
|
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345": "類型 '{0}' 的引數不可指派給類型 '{1}' 的參數。",
|
|
244
245
|
"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "類型 '{0}' 的引數無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}' 的參數。請考慮將 'undefined' 新增到目標屬性的類型。",
|
|
245
246
|
"Arguments_for_the_rest_parameter_0_were_not_provided_6236": "未提供其餘參數 '{0}' 的引數。",
|
|
@@ -558,9 +559,10 @@
|
|
|
558
559
|
"Duplicate_label_0_1114": "標籤 '{0}' 重複。",
|
|
559
560
|
"Duplicate_property_0_2718": "屬性 '{0}' 重複。",
|
|
560
561
|
"Dynamic_import_cannot_have_type_arguments_1326": "動態匯入不可有型別引數。",
|
|
561
|
-
"Dynamic_import_must_have_one_specifier_as_an_argument_1324": "動態匯入必須有一個指定名稱作為引數。",
|
|
562
562
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。",
|
|
563
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' 或 'umd' 時,才支援動態匯入。",
|
|
564
|
+
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動態匯入只能接受模組指定名稱和選擇性判斷提示來做為引數",
|
|
565
|
+
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324": "當 '--module' 選項設定為 'esnext' 時,動態匯入只支援第二個引數。",
|
|
564
566
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "等位型別 '{0}' 的每個成員都有建構簽章,但這些簽章都互不相容。",
|
|
565
567
|
"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "等位型別 '{0}' 的每個成員都有簽章,但這些簽章都互不相容。",
|
|
566
568
|
"Editor_Support_6249": "編輯器支援",
|
|
@@ -758,6 +760,8 @@
|
|
|
758
760
|
"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "匯出類別 '{0}' 的 Implements 子句具有或使用私用名稱 '{1}'。",
|
|
759
761
|
"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "在執行階段中無法將 'symbol' 隱含轉換為 'string'。請考慮將此運算式包裝在 'String(...)' 中。",
|
|
760
762
|
"Import_0_from_module_1_90013": "從模組 \"{1}\" 匯入 '{0}'",
|
|
763
|
+
"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821": "只有當 '--module' 選項設定為 'esnext' 時,才支援匯入判斷提示。",
|
|
764
|
+
"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "匯入判斷提示不能與僅限類型的匯入或匯出搭配使用。",
|
|
761
765
|
"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "當目標為 ECMAScript 模組時,無法使用匯入指派。請考慮改用 'import * as ns from \"mod\"'、'import {a} from \"mod\"'、'import d from \"mod\"' 或其他模組格式。",
|
|
762
766
|
"Import_declaration_0_is_using_private_name_1_4000": "匯入宣告 '{0}' 使用私用名稱 '{1}'。",
|
|
763
767
|
"Import_declaration_conflicts_with_local_declaration_of_0_2440": "匯入宣告與 '{0}' 的區域宣告衝突。",
|
|
@@ -1248,7 +1252,6 @@
|
|
|
1248
1252
|
"Source_has_0_element_s_but_target_requires_1_2618": "來源有 {0} 個元素,但目標需要 {1} 個。",
|
|
1249
1253
|
"Source_provides_no_match_for_required_element_at_position_0_in_target_2623": "來源未針對目標中位於 {0} 的必要元素提供相符項目。",
|
|
1250
1254
|
"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624": "來源未針對目標中位於 {0} 的可變元素提供相符項目。",
|
|
1251
|
-
"Specifier_of_dynamic_import_cannot_be_spread_element_1325": "動態匯入的指定名稱不能是展開元素。",
|
|
1252
1255
|
"Specify_ECMAScript_target_version_6015": "指定 ECMAScript 目標版本。",
|
|
1253
1256
|
"Specify_JSX_code_generation_6080": "指定 JSX 程式碼產生。",
|
|
1254
1257
|
"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679": "指定將所有輸出組合成一個 JavaScript 檔案的檔案。如果 `declaration` 為 True,則也會指定組合所有 .d.ts 輸出的檔案。",
|
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.20210924",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|