typescript 4.6.0-dev.20220127 → 4.6.0-dev.20220128
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 +19 -4
- package/lib/de/diagnosticMessages.generated.json +19 -4
- package/lib/es/diagnosticMessages.generated.json +19 -4
- package/lib/fr/diagnosticMessages.generated.json +2 -0
- package/lib/ja/diagnosticMessages.generated.json +19 -4
- package/lib/ko/diagnosticMessages.generated.json +2 -0
- package/lib/lib.dom.d.ts +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +19 -4
- package/lib/ru/diagnosticMessages.generated.json +2 -0
- package/lib/tsc.js +57 -62
- package/lib/tsserver.js +179 -103
- package/lib/tsserverlibrary.js +179 -103
- package/lib/typescript.js +179 -103
- package/lib/typescriptServices.js +179 -103
- package/lib/typingsInstaller.js +67 -72
- package/lib/zh-cn/diagnosticMessages.generated.json +19 -4
- package/lib/zh-tw/diagnosticMessages.generated.json +19 -4
- package/package.json +1 -1
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220128";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -9432,9 +9432,8 @@ var ts;
|
|
|
9432
9432
|
Remove_variable_statement: diag(90010, ts.DiagnosticCategory.Message, "Remove_variable_statement_90010", "Remove variable statement"),
|
|
9433
9433
|
Remove_template_tag: diag(90011, ts.DiagnosticCategory.Message, "Remove_template_tag_90011", "Remove template tag"),
|
|
9434
9434
|
Remove_type_parameters: diag(90012, ts.DiagnosticCategory.Message, "Remove_type_parameters_90012", "Remove type parameters"),
|
|
9435
|
-
|
|
9435
|
+
Import_0_from_1: diag(90013, ts.DiagnosticCategory.Message, "Import_0_from_1_90013", "Import '{0}' from \"{1}\""),
|
|
9436
9436
|
Change_0_to_1: diag(90014, ts.DiagnosticCategory.Message, "Change_0_to_1_90014", "Change '{0}' to '{1}'"),
|
|
9437
|
-
Add_0_to_existing_import_declaration_from_1: diag(90015, ts.DiagnosticCategory.Message, "Add_0_to_existing_import_declaration_from_1_90015", "Add '{0}' to existing import declaration from \"{1}\""),
|
|
9438
9437
|
Declare_property_0: diag(90016, ts.DiagnosticCategory.Message, "Declare_property_0_90016", "Declare property '{0}'"),
|
|
9439
9438
|
Add_index_signature_for_property_0: diag(90017, ts.DiagnosticCategory.Message, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"),
|
|
9440
9439
|
Disable_checking_for_this_file: diag(90018, ts.DiagnosticCategory.Message, "Disable_checking_for_this_file_90018", "Disable checking for this file"),
|
|
@@ -9451,8 +9450,6 @@ var ts;
|
|
|
9451
9450
|
Add_async_modifier_to_containing_function: diag(90029, ts.DiagnosticCategory.Message, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"),
|
|
9452
9451
|
Replace_infer_0_with_unknown: diag(90030, ts.DiagnosticCategory.Message, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"),
|
|
9453
9452
|
Replace_all_unused_infer_with_unknown: diag(90031, ts.DiagnosticCategory.Message, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"),
|
|
9454
|
-
Import_default_0_from_module_1: diag(90032, ts.DiagnosticCategory.Message, "Import_default_0_from_module_1_90032", "Import default '{0}' from module \"{1}\""),
|
|
9455
|
-
Add_default_import_0_to_existing_import_declaration_from_1: diag(90033, ts.DiagnosticCategory.Message, "Add_default_import_0_to_existing_import_declaration_from_1_90033", "Add default import '{0}' to existing import declaration from \"{1}\""),
|
|
9456
9453
|
Add_parameter_name: diag(90034, ts.DiagnosticCategory.Message, "Add_parameter_name_90034", "Add parameter name"),
|
|
9457
9454
|
Declare_private_property_0: diag(90035, ts.DiagnosticCategory.Message, "Declare_private_property_0_90035", "Declare private property '{0}'"),
|
|
9458
9455
|
Replace_0_with_Promise_1: diag(90036, ts.DiagnosticCategory.Message, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"),
|
|
@@ -9464,6 +9461,8 @@ var ts;
|
|
|
9464
9461
|
Includes_imports_of_types_referenced_by_0: diag(90054, ts.DiagnosticCategory.Message, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"),
|
|
9465
9462
|
Remove_type_from_import_declaration_from_0: diag(90055, ts.DiagnosticCategory.Message, "Remove_type_from_import_declaration_from_0_90055", "Remove 'type' from import declaration from \"{0}\""),
|
|
9466
9463
|
Remove_type_from_import_of_0_from_1: diag(90056, ts.DiagnosticCategory.Message, "Remove_type_from_import_of_0_from_1_90056", "Remove 'type' from import of '{0}' from \"{1}\""),
|
|
9464
|
+
Add_import_from_0: diag(90057, ts.DiagnosticCategory.Message, "Add_import_from_0_90057", "Add import from \"{0}\""),
|
|
9465
|
+
Update_import_from_0: diag(90058, ts.DiagnosticCategory.Message, "Update_import_from_0_90058", "Update import from \"{0}\""),
|
|
9467
9466
|
Convert_function_to_an_ES2015_class: diag(95001, ts.DiagnosticCategory.Message, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"),
|
|
9468
9467
|
Convert_0_to_1_in_0: diag(95003, ts.DiagnosticCategory.Message, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"),
|
|
9469
9468
|
Extract_to_0_in_1: diag(95004, ts.DiagnosticCategory.Message, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"),
|
|
@@ -20862,6 +20861,59 @@ var ts;
|
|
|
20862
20861
|
return !!(type.flags & 262144 /* TypeParameter */ && type.isThisType);
|
|
20863
20862
|
}
|
|
20864
20863
|
ts.isThisTypeParameter = isThisTypeParameter;
|
|
20864
|
+
function getNodeModulePathParts(fullPath) {
|
|
20865
|
+
// If fullPath can't be valid module file within node_modules, returns undefined.
|
|
20866
|
+
// Example of expected pattern: /base/path/node_modules/[@scope/otherpackage/@otherscope/node_modules/]package/[subdirectory/]file.js
|
|
20867
|
+
// Returns indices: ^ ^ ^ ^
|
|
20868
|
+
var topLevelNodeModulesIndex = 0;
|
|
20869
|
+
var topLevelPackageNameIndex = 0;
|
|
20870
|
+
var packageRootIndex = 0;
|
|
20871
|
+
var fileNameIndex = 0;
|
|
20872
|
+
var States;
|
|
20873
|
+
(function (States) {
|
|
20874
|
+
States[States["BeforeNodeModules"] = 0] = "BeforeNodeModules";
|
|
20875
|
+
States[States["NodeModules"] = 1] = "NodeModules";
|
|
20876
|
+
States[States["Scope"] = 2] = "Scope";
|
|
20877
|
+
States[States["PackageContent"] = 3] = "PackageContent";
|
|
20878
|
+
})(States || (States = {}));
|
|
20879
|
+
var partStart = 0;
|
|
20880
|
+
var partEnd = 0;
|
|
20881
|
+
var state = 0 /* BeforeNodeModules */;
|
|
20882
|
+
while (partEnd >= 0) {
|
|
20883
|
+
partStart = partEnd;
|
|
20884
|
+
partEnd = fullPath.indexOf("/", partStart + 1);
|
|
20885
|
+
switch (state) {
|
|
20886
|
+
case 0 /* BeforeNodeModules */:
|
|
20887
|
+
if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {
|
|
20888
|
+
topLevelNodeModulesIndex = partStart;
|
|
20889
|
+
topLevelPackageNameIndex = partEnd;
|
|
20890
|
+
state = 1 /* NodeModules */;
|
|
20891
|
+
}
|
|
20892
|
+
break;
|
|
20893
|
+
case 1 /* NodeModules */:
|
|
20894
|
+
case 2 /* Scope */:
|
|
20895
|
+
if (state === 1 /* NodeModules */ && fullPath.charAt(partStart + 1) === "@") {
|
|
20896
|
+
state = 2 /* Scope */;
|
|
20897
|
+
}
|
|
20898
|
+
else {
|
|
20899
|
+
packageRootIndex = partEnd;
|
|
20900
|
+
state = 3 /* PackageContent */;
|
|
20901
|
+
}
|
|
20902
|
+
break;
|
|
20903
|
+
case 3 /* PackageContent */:
|
|
20904
|
+
if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {
|
|
20905
|
+
state = 1 /* NodeModules */;
|
|
20906
|
+
}
|
|
20907
|
+
else {
|
|
20908
|
+
state = 3 /* PackageContent */;
|
|
20909
|
+
}
|
|
20910
|
+
break;
|
|
20911
|
+
}
|
|
20912
|
+
}
|
|
20913
|
+
fileNameIndex = partStart;
|
|
20914
|
+
return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex: topLevelNodeModulesIndex, topLevelPackageNameIndex: topLevelPackageNameIndex, packageRootIndex: packageRootIndex, fileNameIndex: fileNameIndex } : undefined;
|
|
20915
|
+
}
|
|
20916
|
+
ts.getNodeModulePathParts = getNodeModulePathParts;
|
|
20865
20917
|
})(ts || (ts = {}));
|
|
20866
20918
|
/* @internal */
|
|
20867
20919
|
var ts;
|
|
@@ -48756,24 +48808,19 @@ var ts;
|
|
|
48756
48808
|
error(errorLocation, ts.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, ts.declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), ts.declarationNameToString(errorLocation));
|
|
48757
48809
|
}
|
|
48758
48810
|
}
|
|
48759
|
-
if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */) {
|
|
48760
|
-
|
|
48811
|
+
if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !ts.isValidTypeOnlyAliasUseSite(errorLocation)) {
|
|
48812
|
+
var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result);
|
|
48813
|
+
if (typeOnlyDeclaration) {
|
|
48814
|
+
var message = typeOnlyDeclaration.kind === 274 /* ExportSpecifier */
|
|
48815
|
+
? ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type
|
|
48816
|
+
: ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type;
|
|
48817
|
+
var unescapedName = ts.unescapeLeadingUnderscores(name);
|
|
48818
|
+
addTypeOnlyDeclarationRelatedInfo(error(errorLocation, message, unescapedName), typeOnlyDeclaration, unescapedName);
|
|
48819
|
+
}
|
|
48761
48820
|
}
|
|
48762
48821
|
}
|
|
48763
48822
|
return result;
|
|
48764
48823
|
}
|
|
48765
|
-
function checkSymbolUsageInExpressionContext(symbol, name, useSite) {
|
|
48766
|
-
if (!ts.isValidTypeOnlyAliasUseSite(useSite)) {
|
|
48767
|
-
var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(symbol);
|
|
48768
|
-
if (typeOnlyDeclaration) {
|
|
48769
|
-
var message = typeOnlyDeclaration.kind === 274 /* ExportSpecifier */
|
|
48770
|
-
? ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type
|
|
48771
|
-
: ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type;
|
|
48772
|
-
var unescapedName = ts.unescapeLeadingUnderscores(name);
|
|
48773
|
-
addTypeOnlyDeclarationRelatedInfo(error(useSite, message, unescapedName), typeOnlyDeclaration, unescapedName);
|
|
48774
|
-
}
|
|
48775
|
-
}
|
|
48776
|
-
}
|
|
48777
48824
|
function addTypeOnlyDeclarationRelatedInfo(diagnostic, typeOnlyDeclaration, unescapedName) {
|
|
48778
48825
|
if (!typeOnlyDeclaration)
|
|
48779
48826
|
return diagnostic;
|
|
@@ -120039,7 +120086,7 @@ var ts;
|
|
|
120039
120086
|
if (!host.fileExists || !host.readFile) {
|
|
120040
120087
|
return undefined;
|
|
120041
120088
|
}
|
|
120042
|
-
var parts = getNodeModulePathParts(path);
|
|
120089
|
+
var parts = ts.getNodeModulePathParts(path);
|
|
120043
120090
|
if (!parts) {
|
|
120044
120091
|
return undefined;
|
|
120045
120092
|
}
|
|
@@ -120162,58 +120209,6 @@ var ts;
|
|
|
120162
120209
|
}
|
|
120163
120210
|
}
|
|
120164
120211
|
}
|
|
120165
|
-
function getNodeModulePathParts(fullPath) {
|
|
120166
|
-
// If fullPath can't be valid module file within node_modules, returns undefined.
|
|
120167
|
-
// Example of expected pattern: /base/path/node_modules/[@scope/otherpackage/@otherscope/node_modules/]package/[subdirectory/]file.js
|
|
120168
|
-
// Returns indices: ^ ^ ^ ^
|
|
120169
|
-
var topLevelNodeModulesIndex = 0;
|
|
120170
|
-
var topLevelPackageNameIndex = 0;
|
|
120171
|
-
var packageRootIndex = 0;
|
|
120172
|
-
var fileNameIndex = 0;
|
|
120173
|
-
var States;
|
|
120174
|
-
(function (States) {
|
|
120175
|
-
States[States["BeforeNodeModules"] = 0] = "BeforeNodeModules";
|
|
120176
|
-
States[States["NodeModules"] = 1] = "NodeModules";
|
|
120177
|
-
States[States["Scope"] = 2] = "Scope";
|
|
120178
|
-
States[States["PackageContent"] = 3] = "PackageContent";
|
|
120179
|
-
})(States || (States = {}));
|
|
120180
|
-
var partStart = 0;
|
|
120181
|
-
var partEnd = 0;
|
|
120182
|
-
var state = 0 /* BeforeNodeModules */;
|
|
120183
|
-
while (partEnd >= 0) {
|
|
120184
|
-
partStart = partEnd;
|
|
120185
|
-
partEnd = fullPath.indexOf("/", partStart + 1);
|
|
120186
|
-
switch (state) {
|
|
120187
|
-
case 0 /* BeforeNodeModules */:
|
|
120188
|
-
if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {
|
|
120189
|
-
topLevelNodeModulesIndex = partStart;
|
|
120190
|
-
topLevelPackageNameIndex = partEnd;
|
|
120191
|
-
state = 1 /* NodeModules */;
|
|
120192
|
-
}
|
|
120193
|
-
break;
|
|
120194
|
-
case 1 /* NodeModules */:
|
|
120195
|
-
case 2 /* Scope */:
|
|
120196
|
-
if (state === 1 /* NodeModules */ && fullPath.charAt(partStart + 1) === "@") {
|
|
120197
|
-
state = 2 /* Scope */;
|
|
120198
|
-
}
|
|
120199
|
-
else {
|
|
120200
|
-
packageRootIndex = partEnd;
|
|
120201
|
-
state = 3 /* PackageContent */;
|
|
120202
|
-
}
|
|
120203
|
-
break;
|
|
120204
|
-
case 3 /* PackageContent */:
|
|
120205
|
-
if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {
|
|
120206
|
-
state = 1 /* NodeModules */;
|
|
120207
|
-
}
|
|
120208
|
-
else {
|
|
120209
|
-
state = 3 /* PackageContent */;
|
|
120210
|
-
}
|
|
120211
|
-
break;
|
|
120212
|
-
}
|
|
120213
|
-
}
|
|
120214
|
-
fileNameIndex = partStart;
|
|
120215
|
-
return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex: topLevelNodeModulesIndex, topLevelPackageNameIndex: topLevelPackageNameIndex, packageRootIndex: packageRootIndex, fileNameIndex: fileNameIndex } : undefined;
|
|
120216
|
-
}
|
|
120217
120212
|
function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {
|
|
120218
120213
|
return ts.firstDefined(rootDirs, function (rootDir) {
|
|
120219
120214
|
var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName);
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"A_set_accessor_must_have_exactly_one_parameter_1049": "\"set\" 访问器必须正好具有一个参数。",
|
|
90
90
|
"A_set_accessor_parameter_cannot_have_an_initializer_1052": "\"set\" 访问器参数不能包含初始化表达式。",
|
|
91
91
|
"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "扩张参数必须具有元组类型或传递给 rest 参数。",
|
|
92
|
-
"
|
|
92
|
+
"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.",
|
|
93
|
+
"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers.",
|
|
93
94
|
"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "基于 \"this\" 的类型防护与基于参数的类型防护不兼容。",
|
|
94
95
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "\"this\" 类型仅在类或接口的非静态成员中可用。",
|
|
95
96
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "已在“{0}”中定义了 \"tsconfig.json\" 文件。",
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
"An_iterator_must_have_a_next_method_2489": "迭代器必须具有 \"next()\" 方法。",
|
|
228
229
|
"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "将 @jsx 杂注与 JSX 片段一起使用时,需要使用 @jsxFrag 杂注。",
|
|
229
230
|
"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "对象文字不能具有多个具有相同名称的 get/set 访问器。",
|
|
230
|
-
"
|
|
231
|
+
"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "An object literal cannot have multiple properties with the same name.",
|
|
231
232
|
"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "对象文字不能包含具有相同名称的属性和访问器。",
|
|
232
233
|
"An_object_member_cannot_be_declared_optional_1162": "对象成员无法声明为可选。",
|
|
233
234
|
"An_optional_chain_cannot_contain_private_identifiers_18030": "可选链不能包含专用标识符。",
|
|
@@ -314,6 +315,7 @@
|
|
|
314
315
|
"Cannot_find_name_0_Did_you_mean_1_2552": "找不到名称“{0}”。你是否指的是“{1}”?",
|
|
315
316
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "找不到名称“{0}”。你的意思是实例成员“this.{0}”?",
|
|
316
317
|
"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "找不到名称“{0}”。你的意思是静态成员“{1}.{0}”?",
|
|
318
|
+
"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Cannot find name '{0}'. Did you mean to write this in an async function?",
|
|
317
319
|
"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "找不到名称“{0}”。是否需要更改目标库? 请尝试将 “lib” 编译器选项更改为“{1}”或更高版本。",
|
|
318
320
|
"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "找不到名称“{0}”。是否需要更改目标库? 请尝试更改 “lib” 编译器选项以包括 “dom”。",
|
|
319
321
|
"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "找不到名称 \"{0}\"。是否需要安装测试运行器的类型定义? 请尝试使用 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`。",
|
|
@@ -387,6 +389,7 @@
|
|
|
387
389
|
"Compiler_option_0_expects_an_argument_6044": "编译器选项“{0}”需要参数。",
|
|
388
390
|
"Compiler_option_0_may_not_be_used_with_build_5094": "编译器选项“--{0}”不能与 “--build” 一起使用。",
|
|
389
391
|
"Compiler_option_0_may_only_be_used_with_build_5093": "编译器选项“--{0}”只能与 “--build” 一起使用。",
|
|
392
|
+
"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.",
|
|
390
393
|
"Compiler_option_0_requires_a_value_of_type_1_5024": "编译器选项“{0}”需要类型 {1} 的值。",
|
|
391
394
|
"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "当发出专用标识符下层时,编译器会预留名称“{0}”。",
|
|
392
395
|
"Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "编译位于指定路径的 TypeScript 项目。",
|
|
@@ -565,7 +568,7 @@
|
|
|
565
568
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "动态导入的说明符类型必须是 \"string\",但此处类型是 \"{0}\"。",
|
|
566
569
|
"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅当 '--module' 标志设置为 'es2020'、'es2022'、'esnext'、 'commonjs'、'amd'、'system'、'umd'、'node12' 或 'nodenext' 时,才支持动态导入。",
|
|
567
570
|
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "动态导入只能接受模块说明符和可选断言作为参数",
|
|
568
|
-
"
|
|
571
|
+
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324": "Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'.",
|
|
569
572
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "联合类型 \"{0}\" 的每个成员都有构造签名,但这些签名都不能互相兼容。",
|
|
570
573
|
"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "联合类型 \"{0}\" 的每个成员都有签名,但这些签名都不能互相兼容。",
|
|
571
574
|
"Editor_Support_6249": "编辑器支持",
|
|
@@ -623,6 +626,7 @@
|
|
|
623
626
|
"Enum_member_must_have_initializer_1061": "枚举成员必须具有初始化表达式。",
|
|
624
627
|
"Enum_name_cannot_be_0_2431": "枚举名不能为“{0}”。",
|
|
625
628
|
"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "枚举类型“{0}”包含具有不是文本的初始值设定项的成员。",
|
|
629
|
+
"Errors_Files_6041": "Errors Files",
|
|
626
630
|
"Examples_Colon_0_6026": "示例: {0}",
|
|
627
631
|
"Excessive_stack_depth_comparing_types_0_and_1_2321": "与类型“{0}”和“{1}”相比,堆栈深度过高。",
|
|
628
632
|
"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "应为 {0}-{1} 类型参数;请为这些参数添加 \"@extends\" 标记。",
|
|
@@ -708,8 +712,11 @@
|
|
|
708
712
|
"For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "无法在类静态块内使用 “For await 循环。",
|
|
709
713
|
"Found_0_errors_6217": "找到 {0} 个错误。",
|
|
710
714
|
"Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 个错误。注意文件更改。",
|
|
715
|
+
"Found_0_errors_in_1_files_6261": "Found {0} errors in {1} files.",
|
|
716
|
+
"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Found {0} errors in the same file, starting at: {1}",
|
|
711
717
|
"Found_1_error_6216": "找到 1 个错误。",
|
|
712
718
|
"Found_1_error_Watching_for_file_changes_6193": "找到 1 个错误。注意文件更改。",
|
|
719
|
+
"Found_1_error_in_1_6259": "Found 1 error in {1}",
|
|
713
720
|
"Found_package_json_at_0_6099": "在“{0}”处找到了 \"package.json\"。",
|
|
714
721
|
"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。",
|
|
715
722
|
"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。类定义自动处于严格模式。",
|
|
@@ -764,7 +771,9 @@
|
|
|
764
771
|
"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "导出的类“{0}”的 Implements 子句具有或正在使用专用名称“{1}”。",
|
|
765
772
|
"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "\"symbol\" 到 \"string\" 的隐式转换将在运行时失败。请考虑在 \"String(...)\" 中包装此表达式。",
|
|
766
773
|
"Import_0_from_module_1_90013": "从模块“{1}”导入“{0}”",
|
|
767
|
-
"
|
|
774
|
+
"Import_assertion_values_must_be_string_literal_expressions_2837": "Import assertion values must be string literal expressions.",
|
|
775
|
+
"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Import assertions are not allowed on statements that transpile to commonjs 'require' calls.",
|
|
776
|
+
"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.",
|
|
768
777
|
"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "导入断言不能用于仅类型导入或导出。",
|
|
769
778
|
"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\"\" 或另一种模块格式。",
|
|
770
779
|
"Import_declaration_0_is_using_private_name_1_4000": "导入声明“{0}”使用的是专用名称“{1}”。",
|
|
@@ -790,6 +799,7 @@
|
|
|
790
799
|
"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "在发出的 JavaScript 内的源映射中包含源代码。",
|
|
791
800
|
"Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在发出的 JavaScript 中包括源映射文件。",
|
|
792
801
|
"Include_undefined_in_index_signature_results_6716": "在索引签名结果中包含“未定义”",
|
|
802
|
+
"Includes_imports_of_types_referenced_by_0_90054": "Includes imports of types referenced by '{0}'",
|
|
793
803
|
"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch,-w 将开始监视当前项目的文件更改。设置后,可以使用以下内容配置监视模式:",
|
|
794
804
|
"Index_signature_for_type_0_is_missing_in_type_1_2329": "类型“{1}”中缺少类型“{0}”的索引签名。",
|
|
795
805
|
"Index_signature_in_type_0_only_permits_reading_2542": "类型“{0}”中的索引签名仅允许读取。",
|
|
@@ -1144,6 +1154,8 @@
|
|
|
1144
1154
|
"Referenced_project_0_may_not_disable_emit_6310": "引用的项目“{0}”可能不会禁用发出。",
|
|
1145
1155
|
"Referenced_project_0_must_have_setting_composite_Colon_true_6306": "引用的项目“{0}”必须拥有设置 \"composite\": true。",
|
|
1146
1156
|
"Referenced_via_0_from_file_1_1400": "通过 \"{0}\" 从文件 \"{1}\" 引用",
|
|
1157
|
+
"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.",
|
|
1158
|
+
"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?",
|
|
1147
1159
|
"Remove_a_list_of_directories_from_the_watch_process_6628": "从监视进程中删除目录列表。",
|
|
1148
1160
|
"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "从监视模式的处理中删除文件列表。",
|
|
1149
1161
|
"Remove_all_unnecessary_override_modifiers_95163": "删除所有不必要的 \"override\" 修饰符",
|
|
@@ -1158,6 +1170,8 @@
|
|
|
1158
1170
|
"Remove_parentheses_95126": "删除括号",
|
|
1159
1171
|
"Remove_template_tag_90011": "删除模板标记",
|
|
1160
1172
|
"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "删除 TypeScript 语言服务器中 JavaScript 文件总源代码大小 20mb 的上限。",
|
|
1173
|
+
"Remove_type_from_import_declaration_from_0_90055": "从“{0}”中删除导入声明中的“type”",
|
|
1174
|
+
"Remove_type_from_import_of_0_from_1_90056": "从“{1}”中删除“{0}”导入中的“type”",
|
|
1161
1175
|
"Remove_type_parameters_90012": "删除类型参数",
|
|
1162
1176
|
"Remove_unnecessary_await_95086": "删除不必要的 \"await\"",
|
|
1163
1177
|
"Remove_unreachable_code_95050": "删除无法访问的代码",
|
|
@@ -1706,6 +1720,7 @@
|
|
|
1706
1720
|
"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "\"baseUrl\" 选项设置为“{0}”,可使用此值解析非相关模块名称“{1}”。",
|
|
1707
1721
|
"can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" 只能用在文件的开头。",
|
|
1708
1722
|
"case_or_default_expected_1130": "应为 \"case\" 或 \"default\"。",
|
|
1723
|
+
"catch_or_finally_expected_1472": "'catch' or 'finally' expected.",
|
|
1709
1724
|
"const_declarations_can_only_be_declared_inside_a_block_1156": "\"const\" 声明只能在块的内部声明。",
|
|
1710
1725
|
"const_declarations_must_be_initialized_1155": "必须初始化 \"const\" 声明。",
|
|
1711
1726
|
"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "\"const\" 枚举成员初始化表达式的求值结果为非有限值。",
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"A_set_accessor_must_have_exactly_one_parameter_1049": "'set' 存取子只可有一個參數。",
|
|
90
90
|
"A_set_accessor_parameter_cannot_have_an_initializer_1052": "'set' 存取子參數不得有初始設定式。",
|
|
91
91
|
"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556": "擴張引數必須具有元組類型或傳遞給 REST 參數。",
|
|
92
|
-
"
|
|
92
|
+
"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401": "'super' 呼叫必須是衍生類別 (包含初始化屬性、參數屬性或私人識別碼) 建構函式內的根等級陳述式。",
|
|
93
|
+
"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "當衍生類別包含已初始化的屬性、參數屬性或私人識別碼時,'super' 呼叫必須為建構函式中第一個參照 'super' 或 'this' 的陳述式。",
|
|
93
94
|
"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "以 'this' 為基礎的類型成立條件,和以參數為基礎的類型成立條件不相容。",
|
|
94
95
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 類型只適用於類別或介面的非靜態成員。",
|
|
95
96
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 檔案已定義於: '{0}'。",
|
|
@@ -227,7 +228,7 @@
|
|
|
227
228
|
"An_iterator_must_have_a_next_method_2489": "迭代器必須要有 'next()' 方法。",
|
|
228
229
|
"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "在 JSX 片段使用 @jsx pragma 時,必須有 @jsxFrag pragma。",
|
|
229
230
|
"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118": "物件常值不得有多個同名的 get/set 存取子。",
|
|
230
|
-
"
|
|
231
|
+
"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "物件常值不能有多個相同名稱的屬性。",
|
|
231
232
|
"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "物件常值不得有同名的屬性與存取子。",
|
|
232
233
|
"An_object_member_cannot_be_declared_optional_1162": "不得將物件成員宣告為選擇性。",
|
|
233
234
|
"An_optional_chain_cannot_contain_private_identifiers_18030": "選擇性鏈結不能包含私人識別碼。",
|
|
@@ -314,6 +315,7 @@
|
|
|
314
315
|
"Cannot_find_name_0_Did_you_mean_1_2552": "找不到名稱 '{0}'。您指的是 '{1}' 嗎?",
|
|
315
316
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "找不到名稱 '{0}'。您要找的是此執行個體成員 'this.{0}' 嗎?",
|
|
316
317
|
"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662": "找不到名稱 '{0}'。您要找的是此靜態成員 '{1}.{0}' 嗎?",
|
|
318
|
+
"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "找不到名稱 '{0}'。您是否想要在非同步函數中寫入此專案?",
|
|
317
319
|
"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "找不到名稱「{0}」。要變更您的目標程式庫嗎? 請嘗試將 'lib' 編譯器選項變更為「{1}」或更新版本。",
|
|
318
320
|
"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "找不到名稱「{0}」。要變更您的目標程式庫嗎? 請嘗試將 'lib' 編譯器選項變更為包含 'dom'。",
|
|
319
321
|
"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "找不到名稱 '{0}'。需要安裝測試執行器的型別定義嗎? 請嘗試 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`。",
|
|
@@ -387,6 +389,7 @@
|
|
|
387
389
|
"Compiler_option_0_expects_an_argument_6044": "編譯器選項 '{0}' 必須要有一個引數。",
|
|
388
390
|
"Compiler_option_0_may_not_be_used_with_build_5094": "編譯器選項 '--{0}' 不能與 '--build' 一起使用。",
|
|
389
391
|
"Compiler_option_0_may_only_be_used_with_build_5093": "編譯器選項 '--{0}' 只能與 '--build' 一起使用。",
|
|
392
|
+
"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124": "'{1}' 值的編譯器選項 '{0}'不穩定。使用夜間 TypeScript 將此錯誤設為靜音。請嘗試使用 'npm install -D typescript@next' 更新。",
|
|
390
393
|
"Compiler_option_0_requires_a_value_of_type_1_5024": "編譯器選項 '{0}' 需要類型 {1} 的值。",
|
|
391
394
|
"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027": "降級發出私人識別碼時,編譯器會保留名稱 '{0}'。",
|
|
392
395
|
"Compiles_the_TypeScript_project_located_at_the_specified_path_6927": "編譯位於指定路徑的 TypeScript 專案。",
|
|
@@ -565,7 +568,7 @@
|
|
|
565
568
|
"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。",
|
|
566
569
|
"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node12' 或 'nodenext',才支援動態匯入。",
|
|
567
570
|
"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動態匯入只能接受模組指定名稱和選擇性判斷提示來做為引數",
|
|
568
|
-
"
|
|
571
|
+
"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324": "當 '--module' 選項設定為 'esnext' 時,動態匯入只支援第二個引數。",
|
|
569
572
|
"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "等位型別 '{0}' 的每個成員都有建構簽章,但這些簽章都互不相容。",
|
|
570
573
|
"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "等位型別 '{0}' 的每個成員都有簽章,但這些簽章都互不相容。",
|
|
571
574
|
"Editor_Support_6249": "編輯器支援",
|
|
@@ -623,6 +626,7 @@
|
|
|
623
626
|
"Enum_member_must_have_initializer_1061": "列舉成員必須有初始設定式。",
|
|
624
627
|
"Enum_name_cannot_be_0_2431": "列舉名稱不得為 '{0}'。",
|
|
625
628
|
"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "列舉類型 '{0}' 有初始設定式非常值的成員。",
|
|
629
|
+
"Errors_Files_6041": "錯誤檔案",
|
|
626
630
|
"Examples_Colon_0_6026": "範例: {0}",
|
|
627
631
|
"Excessive_stack_depth_comparing_types_0_and_1_2321": "比較類型 '{0}' 與 '{1}' 的堆疊深度過深。",
|
|
628
632
|
"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "必須是 {0}-{1} 型別引數; 請提供有 '@ extends' 標記的這類型引數。",
|
|
@@ -708,8 +712,11 @@
|
|
|
708
712
|
"For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' 迴圈無法在類別靜態區塊內使用。",
|
|
709
713
|
"Found_0_errors_6217": "找到 {0} 個錯誤。",
|
|
710
714
|
"Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 個錯誤。正在監看檔案變更。",
|
|
715
|
+
"Found_0_errors_in_1_files_6261": "在 {1} 檔案中發現 {0} 個錯誤。",
|
|
716
|
+
"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "在同一個檔案中發現 {0} 個錯誤,開始位置: {1}",
|
|
711
717
|
"Found_1_error_6216": "找到 1 個錯誤。",
|
|
712
718
|
"Found_1_error_Watching_for_file_changes_6193": "找到 1 個錯誤。正在監看檔案變更。",
|
|
719
|
+
"Found_1_error_in_1_6259": "在 {1} 找到 1 個錯誤",
|
|
713
720
|
"Found_package_json_at_0_6099": "在 '{0}' 找到 'package.json'。",
|
|
714
721
|
"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "以 'ES3' 或 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。",
|
|
715
722
|
"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "以 'ES3' 或 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。類別定義會自動進入 strict 模式。",
|
|
@@ -764,7 +771,9 @@
|
|
|
764
771
|
"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "匯出類別 '{0}' 的 Implements 子句具有或使用私用名稱 '{1}'。",
|
|
765
772
|
"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "在執行階段中無法將 'symbol' 隱含轉換為 'string'。請考慮將此運算式包裝在 'String(...)' 中。",
|
|
766
773
|
"Import_0_from_module_1_90013": "從模組 \"{1}\" 匯入 '{0}'",
|
|
767
|
-
"
|
|
774
|
+
"Import_assertion_values_must_be_string_literal_expressions_2837": "匯入判斷提示值必須是字串常值運算式。",
|
|
775
|
+
"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "轉換為 commonjs 'require' 呼叫的陳述式上不允許匯入判斷提示。",
|
|
776
|
+
"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "只有當 '--module' 選項設定為 'esnext' 時,才支援匯入判斷提示。",
|
|
768
777
|
"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "匯入判斷提示不能與僅限類型的匯入或匯出搭配使用。",
|
|
769
778
|
"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\"' 或其他模組格式。",
|
|
770
779
|
"Import_declaration_0_is_using_private_name_1_4000": "匯入宣告 '{0}' 使用私用名稱 '{1}'。",
|
|
@@ -790,6 +799,7 @@
|
|
|
790
799
|
"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644": "在發出 JavaScript 內的 sourcemap 中包含原始程式碼。",
|
|
791
800
|
"Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在發出的 JavaScript 中包含 sourcemap 檔案。",
|
|
792
801
|
"Include_undefined_in_index_signature_results_6716": "在索引簽章結果中包含 'undefined'",
|
|
802
|
+
"Includes_imports_of_types_referenced_by_0_90054": "包括 '{0}' 參考的類型匯入",
|
|
793
803
|
"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch、-w 會開始監看目前專案是否有檔案變更。設定之後,您便可以使用以下來設定監看式模式:",
|
|
794
804
|
"Index_signature_for_type_0_is_missing_in_type_1_2329": "類型 '{0}' 的索引簽章在類型 '{1}' 中遺失。",
|
|
795
805
|
"Index_signature_in_type_0_only_permits_reading_2542": "類型 '{0}' 中的索引簽章只允許讀取。",
|
|
@@ -1144,6 +1154,8 @@
|
|
|
1144
1154
|
"Referenced_project_0_may_not_disable_emit_6310": "參考的專案 '{0}' 不得停用發出。",
|
|
1145
1155
|
"Referenced_project_0_must_have_setting_composite_Colon_true_6306": "參考的專案 '{0}' 之設定 \"composite\" 必須為 true。",
|
|
1146
1156
|
"Referenced_via_0_from_file_1_1400": "透過 '{0}' 從檔案 '{1}' 參考",
|
|
1157
|
+
"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "當 '--moduleResolution' 為 'node12' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。請考慮將延伸模組新增到匯入路徑。",
|
|
1158
|
+
"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "當 '--moduleResolution' 為 'node12' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。您是 指 '{0}' 嗎?",
|
|
1147
1159
|
"Remove_a_list_of_directories_from_the_watch_process_6628": "從監看處理序移除目錄清單。",
|
|
1148
1160
|
"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "從監視模式的處理移除檔案清單。",
|
|
1149
1161
|
"Remove_all_unnecessary_override_modifiers_95163": "移除所有不必要的 'override' 修飾元",
|
|
@@ -1158,6 +1170,8 @@
|
|
|
1158
1170
|
"Remove_parentheses_95126": "移除括弧",
|
|
1159
1171
|
"Remove_template_tag_90011": "移除範本標籤",
|
|
1160
1172
|
"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618": "移除 TypeScript 語言伺服器中 JavaScript 檔案的總原始程式碼大小 20mb 上限。",
|
|
1173
|
+
"Remove_type_from_import_declaration_from_0_90055": "從 \"{0}\" 移除匯入宣告中的 'type'",
|
|
1174
|
+
"Remove_type_from_import_of_0_from_1_90056": "從 \"{1}\" 移除匯入 '{0}' 中的 'type'",
|
|
1161
1175
|
"Remove_type_parameters_90012": "移除型別參數",
|
|
1162
1176
|
"Remove_unnecessary_await_95086": "移除不必要的 'await'",
|
|
1163
1177
|
"Remove_unreachable_code_95050": "移除無法連線的程式碼",
|
|
@@ -1706,6 +1720,7 @@
|
|
|
1706
1720
|
"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' 選項已設為 '{0}'。此值將用於解析非相對的模組名稱 '{1}'。",
|
|
1707
1721
|
"can_only_be_used_at_the_start_of_a_file_18026": "'#!' 只能用於檔案開頭。",
|
|
1708
1722
|
"case_or_default_expected_1130": "必須是 'case' 或 'default'。",
|
|
1723
|
+
"catch_or_finally_expected_1472": "必須是 'catch' 或 'finally'。",
|
|
1709
1724
|
"const_declarations_can_only_be_declared_inside_a_block_1156": "只能在區塊內宣告 'const' 宣告。",
|
|
1710
1725
|
"const_declarations_must_be_initialized_1155": "'const' 宣告必須初始化。",
|
|
1711
1726
|
"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 列舉成員初始設定式已評估為非有限值。",
|
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.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20220128",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|