typescript 5.7.0-dev.20240829 → 5.7.0-dev.20240831
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 +4 -0
- package/lib/tsc.js +370 -98
- package/lib/typescript.d.ts +9 -4
- package/lib/typescript.js +518 -102
- package/lib/zh-cn/diagnosticMessages.generated.json +4 -0
- package/package.json +17 -17
|
@@ -179,6 +179,8 @@
|
|
|
179
179
|
"Add_override_modifier_95160": "添加 \"override\" 修饰符",
|
|
180
180
|
"Add_parameter_name_90034": "添加参数名称",
|
|
181
181
|
"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "将限定符添加到匹配成员名称的所有未解析变量",
|
|
182
|
+
"Add_resolution_mode_import_attribute_95196": "添加 \"resolution-mode\" 导入属性",
|
|
183
|
+
"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "向所有需要 \"resolution-mode\" 导入属性的仅类型导入添加该属性",
|
|
182
184
|
"Add_return_type_0_90063": "添加返回类型“{0}”",
|
|
183
185
|
"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "将 satisfies 和类型断言添加到此表达式 (satisfies T as T) 以使类型显式。",
|
|
184
186
|
"Add_satisfies_and_an_inline_type_assertion_with_0_90068": "使用“{0}”添加 satisfies 和内联类型断言",
|
|
@@ -1748,6 +1750,7 @@
|
|
|
1748
1750
|
"Type_expected_1110": "应为类型。",
|
|
1749
1751
|
"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "类型导入断言应恰好有一个键 - \"resolution-mode\" - 值为 \"import\" 或 \"require\"。",
|
|
1750
1752
|
"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "类型导入属性应只有一个键 \"resolution-mode\",值为 \"import\" 或 \"require\"。",
|
|
1753
|
+
"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "从 CommonJS 模块导入 ECMAScript 模块的类型导入必须具有 \"resolution-mode\" 属性。",
|
|
1751
1754
|
"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "类型实例化过深,且可能无限。",
|
|
1752
1755
|
"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "类型在其自身的 \"then\" 方法的 fulfillment 回调中被直接或间接引用。",
|
|
1753
1756
|
"Type_library_referenced_via_0_from_file_1_1402": "通过 \"{0}\" 从文件 \"{1}\" 引用了库类型",
|
|
@@ -1758,6 +1761,7 @@
|
|
|
1758
1761
|
"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "\"yield*\" 操作数的迭代元素的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。",
|
|
1759
1762
|
"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "属性“{0}”的类型在已映射的类型“{1}”中循环引用其自身。",
|
|
1760
1763
|
"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "异步生成器中 \"yield\" 操作数的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。",
|
|
1764
|
+
"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "从 CommonJS 模块导入 ECMAScript 模块的仅类型导入必须具有 \"resolution-mode\" 属性。",
|
|
1761
1765
|
"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "此导入产生的类型。无法调用或构造命名空间样式的导入,这类导入将在运行时导致失败。请考虑改为使用默认导入或此处需要的导入。",
|
|
1762
1766
|
"Type_parameter_0_has_a_circular_constraint_2313": "类型参数“{0}”具有循环约束。",
|
|
1763
1767
|
"Type_parameter_0_has_a_circular_default_2716": "类型参数“{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": "5.7.0-dev.
|
|
5
|
+
"version": "5.7.0-dev.20240831",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@dprint/formatter": "^0.4.1",
|
|
43
|
-
"@dprint/typescript": "0.91.
|
|
43
|
+
"@dprint/typescript": "0.91.7",
|
|
44
44
|
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
-
"@eslint/js": "^9.9.
|
|
46
|
-
"@octokit/rest": "^21.0.
|
|
47
|
-
"@types/chai": "^4.3.
|
|
48
|
-
"@types/diff": "^5.2.
|
|
45
|
+
"@eslint/js": "^9.9.1",
|
|
46
|
+
"@octokit/rest": "^21.0.2",
|
|
47
|
+
"@types/chai": "^4.3.19",
|
|
48
|
+
"@types/diff": "^5.2.2",
|
|
49
49
|
"@types/minimist": "^1.2.5",
|
|
50
50
|
"@types/mocha": "^10.0.7",
|
|
51
51
|
"@types/ms": "^0.7.34",
|
|
52
52
|
"@types/node": "latest",
|
|
53
53
|
"@types/source-map-support": "^0.5.10",
|
|
54
54
|
"@types/which": "^3.0.4",
|
|
55
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
56
|
-
"@typescript-eslint/type-utils": "^8.
|
|
57
|
-
"@typescript-eslint/utils": "^8.
|
|
55
|
+
"@typescript-eslint/rule-tester": "^8.3.0",
|
|
56
|
+
"@typescript-eslint/type-utils": "^8.3.0",
|
|
57
|
+
"@typescript-eslint/utils": "^8.3.0",
|
|
58
58
|
"azure-devops-node-api": "^14.0.2",
|
|
59
59
|
"c8": "^10.1.2",
|
|
60
60
|
"chai": "^4.5.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"chokidar": "^3.6.0",
|
|
63
63
|
"diff": "^5.2.0",
|
|
64
64
|
"dprint": "^0.47.2",
|
|
65
|
-
"esbuild": "^0.23.
|
|
66
|
-
"eslint": "^9.9.
|
|
65
|
+
"esbuild": "^0.23.1",
|
|
66
|
+
"eslint": "^9.9.1",
|
|
67
67
|
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
|
68
68
|
"eslint-plugin-regexp": "^2.6.0",
|
|
69
69
|
"fast-xml-parser": "^4.4.1",
|
|
@@ -71,18 +71,18 @@
|
|
|
71
71
|
"globals": "^15.9.0",
|
|
72
72
|
"hereby": "^1.9.0",
|
|
73
73
|
"jsonc-parser": "^3.3.1",
|
|
74
|
-
"knip": "^5.27.
|
|
74
|
+
"knip": "^5.27.5",
|
|
75
75
|
"minimist": "^1.2.8",
|
|
76
76
|
"mocha": "^10.7.3",
|
|
77
77
|
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
78
|
-
"monocart-coverage-reports": "^2.10.
|
|
78
|
+
"monocart-coverage-reports": "^2.10.3",
|
|
79
79
|
"ms": "^2.1.3",
|
|
80
80
|
"node-fetch": "^3.3.2",
|
|
81
|
-
"playwright": "^1.46.
|
|
81
|
+
"playwright": "^1.46.1",
|
|
82
82
|
"source-map-support": "^0.5.21",
|
|
83
|
-
"tslib": "^2.
|
|
83
|
+
"tslib": "^2.7.0",
|
|
84
84
|
"typescript": "^5.5.4",
|
|
85
|
-
"typescript-eslint": "^8.
|
|
85
|
+
"typescript-eslint": "^8.3.0",
|
|
86
86
|
"which": "^3.0.1"
|
|
87
87
|
},
|
|
88
88
|
"overrides": {
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"node": "20.1.0",
|
|
118
118
|
"npm": "8.19.4"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "a709f9899c2a544b6de65a0f2623ecbbe1394eab"
|
|
121
121
|
}
|