typescript 4.9.0-dev.20220817 → 4.9.0-dev.20220820
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/.eslintcache +1 -0
- package/lib/cs/diagnosticMessages.generated.json +1 -1
- package/lib/de/diagnosticMessages.generated.json +1 -1
- package/lib/es/diagnosticMessages.generated.json +1 -1
- package/lib/fr/diagnosticMessages.generated.json +1 -1
- package/lib/it/diagnosticMessages.generated.json +1 -1
- package/lib/ja/diagnosticMessages.generated.json +1 -1
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/ru/diagnosticMessages.generated.json +1 -1
- package/lib/tr/diagnosticMessages.generated.json +1 -1
- package/lib/tsc.js +581 -550
- package/lib/tsserver.js +607 -578
- package/lib/tsserverlibrary.d.ts +59 -117
- package/lib/tsserverlibrary.js +607 -578
- package/lib/typescript.d.ts +59 -117
- package/lib/typescript.js +607 -578
- package/lib/typescriptServices.d.ts +59 -117
- package/lib/typescriptServices.js +607 -578
- package/lib/typingsInstaller.js +602 -573
- package/lib/zh-cn/diagnosticMessages.generated.json +8 -8
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +13 -20
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "“{0}”修饰符不能与导入声明一起使用。",
|
|
4
4
|
"A_0_parameter_must_be_the_first_parameter_2680": "“{0}”参数必须是第一个参数。",
|
|
5
5
|
"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc \"@typedef\" 注释不能包含多个 \"@type\" 标记。",
|
|
6
|
-
"A_bigint_literal_cannot_use_exponential_notation_1352": "
|
|
7
|
-
"A_bigint_literal_must_be_an_integer_1353": "
|
|
6
|
+
"A_bigint_literal_cannot_use_exponential_notation_1352": "BigInt 字面量中不能使用指数符号。",
|
|
7
|
+
"A_bigint_literal_must_be_an_integer_1353": "BigInt 字面量必须是整数。",
|
|
8
8
|
"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "绑定模式参数在实现签名中不能为可选参数。",
|
|
9
9
|
"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "\"break\" 语句只能在封闭迭代或 switch 语句内使用。",
|
|
10
10
|
"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "\"break\" 语句只能跳转到封闭语句的标签。",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "环境上下文中的计算属性名称必须引用类型为文本类型或 \"unique symbol\" 类型的表达式。",
|
|
21
21
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "接口中的计算属性名称必须引用必须引用类型为文本类型或 \"unique symbol\" 的表达式。",
|
|
22
22
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "计算属性名的类型必须为 \"string\"、\"number\"、\"symbol\" 或 \"any\"。",
|
|
23
|
-
"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "
|
|
23
|
+
"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355": "'const' 断言只能作用于枚举成员、字符串、数字、布尔值、数组或对象字面量。",
|
|
24
24
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "只有使用字符串文本才能访问常数枚举成员。",
|
|
25
25
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "环境上下文中的 \"const\" 初始化表达式必须为字符串、数字文本或文本枚举引用。",
|
|
26
26
|
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "当构造函数的类扩展 \"null\" 时,它不能包含 \"super\" 调用。",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "动态导入调用返回 “Promise”。请确保具有对 “Promise” 的声明或在 “--lib” 选项中包含了 “ES2015”。",
|
|
39
39
|
"A_file_cannot_have_a_reference_to_itself_1006": "文件不能引用自身。",
|
|
40
40
|
"A_function_returning_never_cannot_have_a_reachable_end_point_2534": "返回“从不”的函数不能具有可访问的终结点。",
|
|
41
|
-
"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "使用
|
|
41
|
+
"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "使用 'new' 关键字调用的函数的 'this' 类型不能为 'void'。",
|
|
42
42
|
"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "其声明类型不为 \"void\" 或 \"any\" 的函数必须返回值。",
|
|
43
43
|
"A_generator_cannot_have_a_void_type_annotation_2505": "生成器不能具有 \"void\" 类型批注。",
|
|
44
44
|
"A_get_accessor_cannot_have_parameters_1054": "\"get\" 访问器不能具有参数。",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空间声明只允许位于命名空间或模块的顶层。",
|
|
58
58
|
"A_non_dry_build_would_build_project_0_6357": "非 -dry 生成将生成项目“{0}”",
|
|
59
59
|
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 生成将删除以下文件: {0}",
|
|
60
|
-
"A_non_dry_build_would_update_output_of_project_0_6375": "
|
|
61
|
-
"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "
|
|
60
|
+
"A_non_dry_build_would_update_output_of_project_0_6375": "非 dry 生成将更新项目 '{0}' 的输出",
|
|
61
|
+
"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "非 dry 生成将更新项目 '{0}' 的输出的时间戳",
|
|
62
62
|
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "只允许在函数或构造函数实现中使用参数初始化表达式。",
|
|
63
63
|
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "不能使用 rest 参数声明参数属性。",
|
|
64
64
|
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "只允许在构造函数实现中使用参数属性。",
|
|
65
65
|
"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187": "不能使用绑定模式声明参数属性。",
|
|
66
|
-
"A_promise_must_have_a_then_method_1059": "
|
|
66
|
+
"A_promise_must_have_a_then_method_1059": "'Promise' 必须具有 'then' 方法。",
|
|
67
67
|
"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331": "类型为 \"unique symbol\" 的类的属性必须同时为 \"static\" 和 \"readonly\"。",
|
|
68
68
|
"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330": "类型为 \"unique symbol\" 的接口或类型文本的属性必须为 \"readonly\"。",
|
|
69
69
|
"A_required_element_cannot_follow_an_optional_element_1257": "必选元素不能位于可选元素后。",
|
|
@@ -1493,7 +1493,7 @@
|
|
|
1493
1493
|
"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "此成员必须有 \"override\" 修饰符,因为它替代基类 \"{0}\" 中的一个成员。",
|
|
1494
1494
|
"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "此成员必须有 \"override\" 修饰符,因为它替代基类 \"{0}\" 中声明的一个抽象方法。",
|
|
1495
1495
|
"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "只能通过启用 \"{0}\" 标志并引用其默认导出,使用 ECMAScript 导入/导出来引用此模块。",
|
|
1496
|
-
"
|
|
1496
|
+
"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "此模块是使用 “export =” 声明的,只能在使用“{0}”标志时用于默认导入。",
|
|
1497
1497
|
"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "此重载签名与其实现签名不兼容。",
|
|
1498
1498
|
"This_parameter_is_not_allowed_with_use_strict_directive_1346": "此参数不允许与 \"use strict\" 指令一起使用。",
|
|
1499
1499
|
"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此参数属性必须具有带 “@override” 标记的 JSDoc 注释,因为它将替代基类“{0}”中的成员。",
|
|
@@ -1493,7 +1493,7 @@
|
|
|
1493
1493
|
"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "因為此成員會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。",
|
|
1494
1494
|
"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "因為此成員會覆寫基底類別 '{0}' 中宣告的抽象方法,所以其必須具有 'override' 修飾元。",
|
|
1495
1495
|
"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "只能以 ECMAScript 匯入/匯出來參考此模組,方法為開啟 '{0}' 旗標並參考其預設匯出。",
|
|
1496
|
-
"
|
|
1496
|
+
"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "此模組使用 'export =' 宣告,只能在使用 '{0}' 旗標時搭配預設匯入使用。",
|
|
1497
1497
|
"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "此多載簽章與其實作簽章不相容。",
|
|
1498
1498
|
"This_parameter_is_not_allowed_with_use_strict_directive_1346": "不允許此參數搭配 'use strict' 指示詞使用。",
|
|
1499
1499
|
"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此參數屬性必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{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.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20220820",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@octokit/rest": "latest",
|
|
33
|
+
"@types/async": "latest",
|
|
33
34
|
"@types/chai": "latest",
|
|
34
|
-
"@types/convert-source-map": "latest",
|
|
35
35
|
"@types/fs-extra": "^9.0.13",
|
|
36
36
|
"@types/glob": "latest",
|
|
37
37
|
"@types/gulp": "^4.0.9",
|
|
@@ -41,31 +41,28 @@
|
|
|
41
41
|
"@types/gulp-sourcemaps": "latest",
|
|
42
42
|
"@types/merge2": "latest",
|
|
43
43
|
"@types/microsoft__typescript-etw": "latest",
|
|
44
|
-
"@types/minimatch": "latest",
|
|
45
44
|
"@types/minimist": "latest",
|
|
46
45
|
"@types/mkdirp": "latest",
|
|
47
46
|
"@types/mocha": "latest",
|
|
48
47
|
"@types/ms": "latest",
|
|
49
48
|
"@types/node": "latest",
|
|
50
49
|
"@types/node-fetch": "^2.6.2",
|
|
51
|
-
"@types/q": "latest",
|
|
52
50
|
"@types/source-map-support": "latest",
|
|
53
51
|
"@types/xml2js": "^0.4.11",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
55
|
-
"@typescript-eslint/parser": "^5.
|
|
56
|
-
"@typescript-eslint/utils": "^5.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
53
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
54
|
+
"@typescript-eslint/utils": "^5.33.1",
|
|
57
55
|
"async": "latest",
|
|
58
|
-
"azure-devops-node-api": "^11.
|
|
56
|
+
"azure-devops-node-api": "^11.2.0",
|
|
59
57
|
"chai": "latest",
|
|
60
58
|
"chalk": "^4.1.2",
|
|
61
|
-
"
|
|
62
|
-
"del": "6.1.1",
|
|
59
|
+
"del": "^6.1.1",
|
|
63
60
|
"diff": "^5.1.0",
|
|
64
|
-
"eslint": "8.
|
|
65
|
-
"eslint-formatter-autolinkable-stylish": "1.2.0",
|
|
66
|
-
"eslint-plugin-import": "2.26.0",
|
|
67
|
-
"eslint-plugin-jsdoc": "39.3.
|
|
68
|
-
"eslint-plugin-no-null": "1.0.2",
|
|
61
|
+
"eslint": "^8.22.0",
|
|
62
|
+
"eslint-formatter-autolinkable-stylish": "^1.2.0",
|
|
63
|
+
"eslint-plugin-import": "^2.26.0",
|
|
64
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
65
|
+
"eslint-plugin-no-null": "^1.0.2",
|
|
69
66
|
"fancy-log": "latest",
|
|
70
67
|
"fs-extra": "^9.1.0",
|
|
71
68
|
"glob": "latest",
|
|
@@ -83,11 +80,9 @@
|
|
|
83
80
|
"ms": "^2.1.3",
|
|
84
81
|
"node-fetch": "^2.6.7",
|
|
85
82
|
"prex": "^0.4.7",
|
|
86
|
-
"q": "latest",
|
|
87
83
|
"source-map-support": "latest",
|
|
88
|
-
"typescript": "^4.
|
|
84
|
+
"typescript": "^4.7.4",
|
|
89
85
|
"vinyl": "latest",
|
|
90
|
-
"vinyl-sourcemaps-apply": "latest",
|
|
91
86
|
"which": "^2.0.2",
|
|
92
87
|
"xml2js": "^0.4.23"
|
|
93
88
|
},
|
|
@@ -107,8 +102,6 @@
|
|
|
107
102
|
"gulp": "gulp",
|
|
108
103
|
"lint": "gulp lint",
|
|
109
104
|
"lint:ci": "gulp lint --ci",
|
|
110
|
-
"lint:compiler": "gulp lint-compiler",
|
|
111
|
-
"lint:scripts": "gulp lint-scripts",
|
|
112
105
|
"setup-hooks": "node scripts/link-hooks.js"
|
|
113
106
|
},
|
|
114
107
|
"browser": {
|