typescript 4.9.0-dev.20220921 → 4.9.0-dev.20220923
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 -2
- package/lib/de/diagnosticMessages.generated.json +4 -2
- package/lib/es/diagnosticMessages.generated.json +4 -2
- package/lib/fr/diagnosticMessages.generated.json +4 -2
- package/lib/it/diagnosticMessages.generated.json +4 -2
- package/lib/ja/diagnosticMessages.generated.json +4 -2
- package/lib/ko/diagnosticMessages.generated.json +4 -2
- package/lib/lib.dom.d.ts +199 -58
- package/lib/lib.webworker.d.ts +73 -24
- package/lib/pl/diagnosticMessages.generated.json +4 -2
- package/lib/pt-br/diagnosticMessages.generated.json +4 -2
- package/lib/ru/diagnosticMessages.generated.json +4 -2
- package/lib/tr/diagnosticMessages.generated.json +1 -2
- package/lib/tsc.js +35 -33
- package/lib/tsserver.js +49 -44
- package/lib/tsserverlibrary.d.ts +4 -0
- package/lib/tsserverlibrary.js +49 -44
- package/lib/typescript.d.ts +4 -0
- package/lib/typescript.js +48 -43
- package/lib/typescriptServices.d.ts +4 -0
- package/lib/typescriptServices.js +48 -43
- package/lib/typingsInstaller.js +39 -38
- package/lib/zh-cn/diagnosticMessages.generated.json +4 -2
- package/lib/zh-tw/diagnosticMessages.generated.json +4 -2
- 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 = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220923");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -45233,6 +45233,7 @@ var ts;
|
|
|
45233
45233
|
}
|
|
45234
45234
|
}
|
|
45235
45235
|
function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
|
|
45236
|
+
var _a;
|
|
45236
45237
|
var candidate = ts.normalizePath(ts.combinePaths(nodeModulesDirectory, moduleName));
|
|
45237
45238
|
// First look for a nested package.json, as in `node_modules/foo/bar/package.json`.
|
|
45238
45239
|
var packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);
|
|
@@ -45247,13 +45248,7 @@ var ts;
|
|
|
45247
45248
|
return withPackageId(packageInfo, fromDirectory);
|
|
45248
45249
|
}
|
|
45249
45250
|
}
|
|
45250
|
-
var _a = parsePackageName(moduleName), packageName = _a.packageName, rest = _a.rest;
|
|
45251
45251
|
var loader = function (extensions, candidate, onlyRecordFailures, state) {
|
|
45252
|
-
var _a;
|
|
45253
|
-
// package exports are higher priority than file/directory lookups (and, if there's exports present, blocks them)
|
|
45254
|
-
if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
|
|
45255
|
-
return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
|
|
45256
|
-
}
|
|
45257
45252
|
var pathAndExtension = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
|
|
45258
45253
|
loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo && packageInfo.contents.packageJsonContent, packageInfo && packageInfo.contents.versionPaths);
|
|
45259
45254
|
if (!pathAndExtension && packageInfo
|
|
@@ -45266,19 +45261,24 @@ var ts;
|
|
|
45266
45261
|
}
|
|
45267
45262
|
return withPackageId(packageInfo, pathAndExtension);
|
|
45268
45263
|
};
|
|
45269
|
-
|
|
45270
|
-
|
|
45271
|
-
|
|
45264
|
+
var _b = parsePackageName(moduleName), packageName = _b.packageName, rest = _b.rest;
|
|
45265
|
+
var packageDirectory = ts.combinePaths(nodeModulesDirectory, packageName);
|
|
45266
|
+
if (rest !== "") {
|
|
45267
|
+
// Previous `packageInfo` may have been from a nested package.json; ensure we have the one from the package root now.
|
|
45272
45268
|
packageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
|
|
45273
|
-
|
|
45274
|
-
|
|
45275
|
-
|
|
45276
|
-
|
|
45277
|
-
|
|
45278
|
-
|
|
45279
|
-
|
|
45280
|
-
|
|
45281
|
-
|
|
45269
|
+
}
|
|
45270
|
+
// package exports are higher priority than file/directory/typesVersions lookups and (and, if there's exports present, blocks them)
|
|
45271
|
+
if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
|
|
45272
|
+
return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
|
|
45273
|
+
}
|
|
45274
|
+
if (rest !== "" && packageInfo && packageInfo.contents.versionPaths) {
|
|
45275
|
+
if (state.traceEnabled) {
|
|
45276
|
+
trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, packageInfo.contents.versionPaths.version, ts.version, rest);
|
|
45277
|
+
}
|
|
45278
|
+
var packageDirectoryExists = nodeModulesDirectoryExists && ts.directoryProbablyExists(packageDirectory, state.host);
|
|
45279
|
+
var fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, packageInfo.contents.versionPaths.paths, /*pathPatterns*/ undefined, loader, !packageDirectoryExists, state);
|
|
45280
|
+
if (fromPaths) {
|
|
45281
|
+
return fromPaths.value;
|
|
45282
45282
|
}
|
|
45283
45283
|
}
|
|
45284
45284
|
return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
|
|
@@ -55459,6 +55459,7 @@ var ts;
|
|
|
55459
55459
|
&& symbol.escapedName !== "export=" /* InternalSymbolName.ExportEquals */
|
|
55460
55460
|
&& !(symbol.flags & 4194304 /* SymbolFlags.Prototype */)
|
|
55461
55461
|
&& !(symbol.flags & 32 /* SymbolFlags.Class */)
|
|
55462
|
+
&& !(symbol.flags & 8192 /* SymbolFlags.Method */)
|
|
55462
55463
|
&& !isConstMergedWithNSPrintableAsSignatureMerge) {
|
|
55463
55464
|
if (propertyAsAlias) {
|
|
55464
55465
|
var createdExport = serializeMaybeAliasAssignment(symbol);
|
|
@@ -115393,6 +115394,7 @@ var ts;
|
|
|
115393
115394
|
writeTrailingSemicolon();
|
|
115394
115395
|
}
|
|
115395
115396
|
function emitExportDeclaration(node) {
|
|
115397
|
+
emitModifiers(node, node.modifiers);
|
|
115396
115398
|
var nextPos = emitTokenWithComment(93 /* SyntaxKind.ExportKeyword */, node.pos, writeKeyword, node);
|
|
115397
115399
|
writeSpace();
|
|
115398
115400
|
if (node.isTypeOnly) {
|
|
@@ -118818,7 +118820,7 @@ var ts;
|
|
|
118818
118820
|
* Determines if program structure is upto date or needs to be recreated
|
|
118819
118821
|
*/
|
|
118820
118822
|
/* @internal */
|
|
118821
|
-
function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists,
|
|
118823
|
+
function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
|
|
118822
118824
|
// If we haven't created a program yet or have changed automatic type directives, then it is not up-to-date
|
|
118823
118825
|
if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
|
|
118824
118826
|
return false;
|
|
@@ -118846,7 +118848,7 @@ var ts;
|
|
|
118846
118848
|
return true;
|
|
118847
118849
|
function sourceFileNotUptoDate(sourceFile) {
|
|
118848
118850
|
return !sourceFileVersionUptoDate(sourceFile) ||
|
|
118849
|
-
|
|
118851
|
+
hasInvalidatedResolutions(sourceFile.path);
|
|
118850
118852
|
}
|
|
118851
118853
|
function sourceFileVersionUptoDate(sourceFile) {
|
|
118852
118854
|
return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);
|
|
@@ -119092,7 +119094,7 @@ var ts;
|
|
|
119092
119094
|
var moduleResolutionCache;
|
|
119093
119095
|
var typeReferenceDirectiveResolutionCache;
|
|
119094
119096
|
var actualResolveModuleNamesWorker;
|
|
119095
|
-
var
|
|
119097
|
+
var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
|
|
119096
119098
|
if (host.resolveModuleNames) {
|
|
119097
119099
|
actualResolveModuleNamesWorker = function (moduleNames, containingFile, containingFileName, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFileName, reusedNames, redirectedReference, options, containingFile).map(function (resolved) {
|
|
119098
119100
|
// An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.
|
|
@@ -119539,7 +119541,7 @@ var ts;
|
|
|
119539
119541
|
for (var i = 0; i < moduleNames.length; i++) {
|
|
119540
119542
|
var moduleName = moduleNames[i];
|
|
119541
119543
|
// If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions
|
|
119542
|
-
if (file === oldSourceFile && !
|
|
119544
|
+
if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {
|
|
119543
119545
|
var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName, getModeForResolutionAtIndex(oldSourceFile, i));
|
|
119544
119546
|
if (oldResolvedModule) {
|
|
119545
119547
|
if (ts.isTraceEnabled(options, host)) {
|
|
@@ -119775,7 +119777,7 @@ var ts;
|
|
|
119775
119777
|
// tentatively approve the file
|
|
119776
119778
|
modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
|
|
119777
119779
|
}
|
|
119778
|
-
else if (
|
|
119780
|
+
else if (hasInvalidatedResolutions(oldSourceFile.path)) {
|
|
119779
119781
|
// 'module/types' references could have changed
|
|
119780
119782
|
structureIsReused = 1 /* StructureIsReused.SafeModules */;
|
|
119781
119783
|
// add file to the modified list so that we will resolve it later
|
|
@@ -123821,7 +123823,7 @@ var ts;
|
|
|
123821
123823
|
invalidateResolutionOfFile: invalidateResolutionOfFile,
|
|
123822
123824
|
invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,
|
|
123823
123825
|
setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,
|
|
123824
|
-
|
|
123826
|
+
createHasInvalidatedResolutions: createHasInvalidatedResolutions,
|
|
123825
123827
|
isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,
|
|
123826
123828
|
updateTypeRootsWatch: updateTypeRootsWatch,
|
|
123827
123829
|
closeTypeRootsWatch: closeTypeRootsWatch,
|
|
@@ -123876,17 +123878,13 @@ var ts;
|
|
|
123876
123878
|
var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);
|
|
123877
123879
|
return !!value && !!value.length;
|
|
123878
123880
|
}
|
|
123879
|
-
function
|
|
123881
|
+
function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {
|
|
123880
123882
|
// Ensure pending resolutions are applied
|
|
123881
123883
|
invalidateResolutionsOfFailedLookupLocations();
|
|
123882
|
-
if (forceAllFilesAsInvalidated) {
|
|
123883
|
-
// Any file asked would have invalidated resolution
|
|
123884
|
-
filesWithInvalidatedResolutions = undefined;
|
|
123885
|
-
return ts.returnTrue;
|
|
123886
|
-
}
|
|
123887
123884
|
var collected = filesWithInvalidatedResolutions;
|
|
123888
123885
|
filesWithInvalidatedResolutions = undefined;
|
|
123889
|
-
return function (path) { return (
|
|
123886
|
+
return function (path) { return customHasInvalidatedResolutions(path) ||
|
|
123887
|
+
!!(collected === null || collected === void 0 ? void 0 : collected.has(path)) ||
|
|
123890
123888
|
isFileWithInvalidatedNonRelativeUnresolvedImports(path); };
|
|
123891
123889
|
}
|
|
123892
123890
|
function startCachingPerDirectoryResolution() {
|
|
@@ -126266,6 +126264,10 @@ var ts;
|
|
|
126266
126264
|
ts.maybeBind(host, host.getModuleResolutionCache) :
|
|
126267
126265
|
(function () { return resolutionCache.getModuleResolutionCache(); });
|
|
126268
126266
|
var userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
|
|
126267
|
+
// All resolutions are invalid if user provided resolutions and didnt supply hasInvalidatedResolutions
|
|
126268
|
+
var customHasInvalidatedResolutions = userProvidedResolution ?
|
|
126269
|
+
ts.maybeBind(host, host.hasInvalidatedResolutions) || ts.returnTrue :
|
|
126270
|
+
ts.returnFalse;
|
|
126269
126271
|
builderProgram = readBuilderProgram(compilerOptions, compilerHost);
|
|
126270
126272
|
synchronizeProgram();
|
|
126271
126273
|
// Update the wild card directory watch
|
|
@@ -126331,10 +126333,9 @@ var ts;
|
|
|
126331
126333
|
resolutionCache.clear();
|
|
126332
126334
|
}
|
|
126333
126335
|
}
|
|
126334
|
-
|
|
126335
|
-
var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution);
|
|
126336
|
+
var hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
|
|
126336
126337
|
var _a = ts.changeCompilerHostLikeToUseCache(compilerHost, toPath), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile;
|
|
126337
|
-
if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); },
|
|
126338
|
+
if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
|
|
126338
126339
|
if (hasChangedConfigFileParsingErrors) {
|
|
126339
126340
|
if (reportFileChangeDetectedOnCreateProgram) {
|
|
126340
126341
|
reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
|
|
@@ -126347,7 +126348,7 @@ var ts;
|
|
|
126347
126348
|
if (reportFileChangeDetectedOnCreateProgram) {
|
|
126348
126349
|
reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
|
|
126349
126350
|
}
|
|
126350
|
-
createNewProgram(
|
|
126351
|
+
createNewProgram(hasInvalidatedResolutions);
|
|
126351
126352
|
}
|
|
126352
126353
|
reportFileChangeDetectedOnCreateProgram = false;
|
|
126353
126354
|
if (host.afterProgramCreate && program !== builderProgram) {
|
|
@@ -126360,7 +126361,7 @@ var ts;
|
|
|
126360
126361
|
compilerHost.writeFile = originalWriteFile;
|
|
126361
126362
|
return builderProgram;
|
|
126362
126363
|
}
|
|
126363
|
-
function createNewProgram(
|
|
126364
|
+
function createNewProgram(hasInvalidatedResolutions) {
|
|
126364
126365
|
// Compile the program
|
|
126365
126366
|
writeLog("CreatingProgramWith::");
|
|
126366
126367
|
writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
|
|
@@ -126371,7 +126372,7 @@ var ts;
|
|
|
126371
126372
|
hasChangedCompilerOptions = false;
|
|
126372
126373
|
hasChangedConfigFileParsingErrors = false;
|
|
126373
126374
|
resolutionCache.startCachingPerDirectoryResolution();
|
|
126374
|
-
compilerHost.
|
|
126375
|
+
compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;
|
|
126375
126376
|
compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;
|
|
126376
126377
|
var oldProgram = getCurrentProgram();
|
|
126377
126378
|
builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
|
|
@@ -1427,7 +1427,6 @@
|
|
|
1427
1427
|
"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算术运算左侧必须是 \"any\"、\"number\"、\"bigint\" 或枚举类型。",
|
|
1428
1428
|
"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "赋值表达式的左侧不能是可选属性访问。",
|
|
1429
1429
|
"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "赋值表达式的左侧必须是变量或属性访问。",
|
|
1430
|
-
"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "\"in\" 表达式的左侧必须是专用标识符或其类型必须为 \"any\"、\"string\"、\"number\" 或 \"symbol\"。",
|
|
1431
1430
|
"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "\"instanceof\" 表达式左侧必须是 \"any\" 类型、对象类型或类型参数。",
|
|
1432
1431
|
"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "向用户显示消息时所用的区域设置(例如,\"en-us\")",
|
|
1433
1432
|
"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "用于搜索 node_modules 和加载 JavaScript 文件的最大依赖项深度。",
|
|
@@ -1448,7 +1447,6 @@
|
|
|
1448
1447
|
"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "异步函数或方法的返回类型必须为全局 Promise<T> 类型。你是否是指写入 \"Promise<{0}>\"?",
|
|
1449
1448
|
"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "\"for...in\" 语句右侧必须是 \"any\" 类型、对象类型或类型参数,但此处的类型为“{0}”。",
|
|
1450
1449
|
"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算术运算右侧必须是 \"any\"、\"number\"、\"bigint\" 或枚举类型。",
|
|
1451
|
-
"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "\"in\" 表达式的右侧不得是基元。",
|
|
1452
1450
|
"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "\"instanceof\" 表达式的右侧必须属于类型 \"any\",或属于可分配给 \"Function\" 接口类型的类型。",
|
|
1453
1451
|
"The_root_value_of_a_0_file_must_be_an_object_5092": "“{0}”文件的根值必须是一个对象。",
|
|
1454
1452
|
"The_shadowing_declaration_of_0_is_defined_here_18017": "在此处定义了“{0}”的阴影声明",
|
|
@@ -1476,6 +1474,7 @@
|
|
|
1476
1474
|
"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 标记的 \"{0}\" 属性需要 \"{1}\" 类型的子级,但提供了多个子级。",
|
|
1477
1475
|
"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 标记的 \"{0}\" 属性需要类型 \"{1}\",该类型需要多个子级,但仅提供了一个子级。",
|
|
1478
1476
|
"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "此比较似乎是无意的,因为类型“{0}”和“{1}”没有重叠。",
|
|
1477
|
+
"This_condition_will_always_return_0_2845": "此条件将始终返回“{0}”。",
|
|
1479
1478
|
"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此条件将始终返回“{0}”,因为 JavaScript 按引用而不是值比较对象。",
|
|
1480
1479
|
"This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "此条件将始终返回 true,因为此“{0}”已始终定义。",
|
|
1481
1480
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "此条件将始终返回 true,因为始终定义了函数。你是想改为调用它吗?",
|
|
@@ -1551,6 +1550,7 @@
|
|
|
1551
1550
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "类型 “{0}” 不能分配给“exactOptionalPropertyTypes: true”的类型 “{1}”。请考虑将 “undefined” 添加到目标类型。。",
|
|
1552
1551
|
"Type_0_is_not_comparable_to_type_1_2678": "类型“{0}”不可与类型“{1}”进行比较。",
|
|
1553
1552
|
"Type_0_is_not_generic_2315": "类型“{0}”不是泛型类型。",
|
|
1553
|
+
"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "类型 \"{0}\" 可以表示基元值,该值不允许作为“in”运算符的右操作数。",
|
|
1554
1554
|
"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "类型“{0}”必须具有返回异步迭代器的 \"[Symbol.asyncIterator]()\" 方法。",
|
|
1555
1555
|
"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "类型“{0}”必须具有返回迭代器的 \"[Symbol.iterator]()\" 方法。",
|
|
1556
1556
|
"Type_0_provides_no_match_for_the_signature_1_2658": "类型“{0}”提供的内容与签名“{1}”不匹配。",
|
|
@@ -1649,6 +1649,8 @@
|
|
|
1649
1649
|
"Updating_output_of_project_0_6373": "正在更新项目 \"{0}\" 的输出…",
|
|
1650
1650
|
"Updating_output_timestamps_of_project_0_6359": "正在更新项目“{0}”的输出时间戳...",
|
|
1651
1651
|
"Updating_unchanged_output_timestamps_of_project_0_6371": "正在更新项目 \"{0}\" 未更改的输出时间戳…",
|
|
1652
|
+
"Use_0_95174": "使用 `{0}`",
|
|
1653
|
+
"Use_Number_isNaN_in_all_conditions_95175": "在所有条件下使用 `Number.isNaN`。",
|
|
1652
1654
|
"Use_element_access_for_0_95145": "对“{0}”使用元素访问",
|
|
1653
1655
|
"Use_element_access_for_all_undeclared_properties_95146": "对所有未声明的属性使用元素访问。",
|
|
1654
1656
|
"Use_synthetic_default_member_95016": "使用综合的“默认”成员。",
|
|
@@ -1427,7 +1427,6 @@
|
|
|
1427
1427
|
"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術運算的左側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。",
|
|
1428
1428
|
"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "指派運算式的左側不可為選擇性屬性存取。",
|
|
1429
1429
|
"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "指派運算式的左邊必須是變數或屬性存取。",
|
|
1430
|
-
"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "'in' 運算式的左側必須是私人識別碼或 'any'、'string'、'number' 或 'symbol' 類型。",
|
|
1431
1430
|
"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 運算式左側必須是類型 'any'、物件類型或型別參數。",
|
|
1432
1431
|
"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "對使用者顯示訊息時所使用的地區設定 (例如 'zh-tw')",
|
|
1433
1432
|
"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "在 node_modules 及載入 JavaScript 檔案下搜尋時的最大相依性深度。",
|
|
@@ -1448,7 +1447,6 @@
|
|
|
1448
1447
|
"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "非同步函式或方法的傳回型別,必須為全域 Promise<T> 類型。是否要寫入 'Promise<{0}>'?",
|
|
1449
1448
|
"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' 陳述式的右方必須是類型 'any'、物件類型或型別參數,但此處為類型 '{0}'。",
|
|
1450
1449
|
"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算術運算的右側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。",
|
|
1451
|
-
"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "'In' 運算式的右側不得為基元。",
|
|
1452
1450
|
"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' 運算式的右側必須是 'any' 類型,或是可指派給 'Function' 介面類型的類型。",
|
|
1453
1451
|
"The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' 檔案的根值必須是物件。",
|
|
1454
1452
|
"The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' 的隱蔽宣告定義於此處",
|
|
@@ -1476,6 +1474,7 @@
|
|
|
1476
1474
|
"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 標籤的 '{0}' 屬性只能有一個 '{1}' 類型的子系,但提供的子系卻有多個。",
|
|
1477
1475
|
"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 標籤的 '{0}' 屬性需要必須有多個子系的類型 '{1}',但僅提供的子系只有一個。",
|
|
1478
1476
|
"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "此比較似乎是無意的,因為類型 '{0}' 和 '{1}' 沒有重疊。",
|
|
1477
|
+
"This_condition_will_always_return_0_2845": "此條件一律傳回 '{0}'。",
|
|
1479
1478
|
"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此條件一律會傳回 '{0}',因為 JavaScript 會依參照而非值比較物件。",
|
|
1480
1479
|
"This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "因為此 '{0}' 一律會被定義,所以此條件一律傳回 True。",
|
|
1481
1480
|
"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?",
|
|
@@ -1551,6 +1550,7 @@
|
|
|
1551
1550
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標的類型。",
|
|
1552
1551
|
"Type_0_is_not_comparable_to_type_1_2678": "類型 '{0}' 無法和類型 '{1}' 比較。",
|
|
1553
1552
|
"Type_0_is_not_generic_2315": "'{0}' 不是泛型類型。",
|
|
1553
|
+
"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "類型 '{0}' 可能代表基本值,但不允許做為 'in' 運算子的右運算元。",
|
|
1554
1554
|
"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "類型 '{0}' 必須具備會傳回非同步迭代器的 '[Symbol.asyncIterator]()' 方法。",
|
|
1555
1555
|
"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "類型 '{0}' 必須具備會傳回迭代器的 '[Symbol.iterator]()' 方法。",
|
|
1556
1556
|
"Type_0_provides_no_match_for_the_signature_1_2658": "類型 '{0}' 沒有符合特徵標記 '{1}' 的項目。",
|
|
@@ -1649,6 +1649,8 @@
|
|
|
1649
1649
|
"Updating_output_of_project_0_6373": "正在更新專案 '{0}' 的輸出...",
|
|
1650
1650
|
"Updating_output_timestamps_of_project_0_6359": "正在更新專案 '{0}' 的輸出時間戳記...",
|
|
1651
1651
|
"Updating_unchanged_output_timestamps_of_project_0_6371": "正在更新專案 '{0}' 的未更變輸出時間戳記...",
|
|
1652
|
+
"Use_0_95174": "使用 `{0}`。",
|
|
1653
|
+
"Use_Number_isNaN_in_all_conditions_95175": "在所有條件中都使用 'Number.isNaN'。",
|
|
1652
1654
|
"Use_element_access_for_0_95145": "對 '{0}' 使用元素存取",
|
|
1653
1655
|
"Use_element_access_for_all_undeclared_properties_95146": "對所有未宣告的屬性使用元素存取。",
|
|
1654
1656
|
"Use_synthetic_default_member_95016": "使用綜合 'default' 成員。",
|
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.20220923",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|