typescript 4.9.0-dev.20220922 → 4.9.0-dev.20220924

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.
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220922");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220924");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -118830,7 +118830,7 @@ var ts;
118830
118830
  * Determines if program structure is upto date or needs to be recreated
118831
118831
  */
118832
118832
  /* @internal */
118833
- function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
118833
+ function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
118834
118834
  // If we haven't created a program yet or have changed automatic type directives, then it is not up-to-date
118835
118835
  if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
118836
118836
  return false;
@@ -118858,7 +118858,7 @@ var ts;
118858
118858
  return true;
118859
118859
  function sourceFileNotUptoDate(sourceFile) {
118860
118860
  return !sourceFileVersionUptoDate(sourceFile) ||
118861
- hasInvalidatedResolution(sourceFile.path);
118861
+ hasInvalidatedResolutions(sourceFile.path);
118862
118862
  }
118863
118863
  function sourceFileVersionUptoDate(sourceFile) {
118864
118864
  return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);
@@ -119104,7 +119104,7 @@ var ts;
119104
119104
  var moduleResolutionCache;
119105
119105
  var typeReferenceDirectiveResolutionCache;
119106
119106
  var actualResolveModuleNamesWorker;
119107
- var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;
119107
+ var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
119108
119108
  if (host.resolveModuleNames) {
119109
119109
  actualResolveModuleNamesWorker = function (moduleNames, containingFile, containingFileName, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFileName, reusedNames, redirectedReference, options, containingFile).map(function (resolved) {
119110
119110
  // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.
@@ -119551,7 +119551,7 @@ var ts;
119551
119551
  for (var i = 0; i < moduleNames.length; i++) {
119552
119552
  var moduleName = moduleNames[i];
119553
119553
  // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions
119554
- if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
119554
+ if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {
119555
119555
  var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName, getModeForResolutionAtIndex(oldSourceFile, i));
119556
119556
  if (oldResolvedModule) {
119557
119557
  if (ts.isTraceEnabled(options, host)) {
@@ -119787,7 +119787,7 @@ var ts;
119787
119787
  // tentatively approve the file
119788
119788
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
119789
119789
  }
119790
- else if (hasInvalidatedResolution(oldSourceFile.path)) {
119790
+ else if (hasInvalidatedResolutions(oldSourceFile.path)) {
119791
119791
  // 'module/types' references could have changed
119792
119792
  structureIsReused = 1 /* StructureIsReused.SafeModules */;
119793
119793
  // add file to the modified list so that we will resolve it later
@@ -123833,7 +123833,7 @@ var ts;
123833
123833
  invalidateResolutionOfFile: invalidateResolutionOfFile,
123834
123834
  invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,
123835
123835
  setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,
123836
- createHasInvalidatedResolution: createHasInvalidatedResolution,
123836
+ createHasInvalidatedResolutions: createHasInvalidatedResolutions,
123837
123837
  isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,
123838
123838
  updateTypeRootsWatch: updateTypeRootsWatch,
123839
123839
  closeTypeRootsWatch: closeTypeRootsWatch,
@@ -123888,17 +123888,13 @@ var ts;
123888
123888
  var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);
123889
123889
  return !!value && !!value.length;
123890
123890
  }
123891
- function createHasInvalidatedResolution(forceAllFilesAsInvalidated) {
123891
+ function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {
123892
123892
  // Ensure pending resolutions are applied
123893
123893
  invalidateResolutionsOfFailedLookupLocations();
123894
- if (forceAllFilesAsInvalidated) {
123895
- // Any file asked would have invalidated resolution
123896
- filesWithInvalidatedResolutions = undefined;
123897
- return ts.returnTrue;
123898
- }
123899
123894
  var collected = filesWithInvalidatedResolutions;
123900
123895
  filesWithInvalidatedResolutions = undefined;
123901
- return function (path) { return (!!collected && collected.has(path)) ||
123896
+ return function (path) { return customHasInvalidatedResolutions(path) ||
123897
+ !!(collected === null || collected === void 0 ? void 0 : collected.has(path)) ||
123902
123898
  isFileWithInvalidatedNonRelativeUnresolvedImports(path); };
123903
123899
  }
123904
123900
  function startCachingPerDirectoryResolution() {
@@ -126278,6 +126274,10 @@ var ts;
126278
126274
  ts.maybeBind(host, host.getModuleResolutionCache) :
126279
126275
  (function () { return resolutionCache.getModuleResolutionCache(); });
126280
126276
  var userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
126277
+ // All resolutions are invalid if user provided resolutions and didnt supply hasInvalidatedResolutions
126278
+ var customHasInvalidatedResolutions = userProvidedResolution ?
126279
+ ts.maybeBind(host, host.hasInvalidatedResolutions) || ts.returnTrue :
126280
+ ts.returnFalse;
126281
126281
  builderProgram = readBuilderProgram(compilerOptions, compilerHost);
126282
126282
  synchronizeProgram();
126283
126283
  // Update the wild card directory watch
@@ -126343,10 +126343,9 @@ var ts;
126343
126343
  resolutionCache.clear();
126344
126344
  }
126345
126345
  }
126346
- // All resolutions are invalid if user provided resolutions
126347
- var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution);
126346
+ var hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
126348
126347
  var _a = ts.changeCompilerHostLikeToUseCache(compilerHost, toPath), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile;
126349
- if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
126348
+ if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
126350
126349
  if (hasChangedConfigFileParsingErrors) {
126351
126350
  if (reportFileChangeDetectedOnCreateProgram) {
126352
126351
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -126359,7 +126358,7 @@ var ts;
126359
126358
  if (reportFileChangeDetectedOnCreateProgram) {
126360
126359
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
126361
126360
  }
126362
- createNewProgram(hasInvalidatedResolution);
126361
+ createNewProgram(hasInvalidatedResolutions);
126363
126362
  }
126364
126363
  reportFileChangeDetectedOnCreateProgram = false;
126365
126364
  if (host.afterProgramCreate && program !== builderProgram) {
@@ -126372,7 +126371,7 @@ var ts;
126372
126371
  compilerHost.writeFile = originalWriteFile;
126373
126372
  return builderProgram;
126374
126373
  }
126375
- function createNewProgram(hasInvalidatedResolution) {
126374
+ function createNewProgram(hasInvalidatedResolutions) {
126376
126375
  // Compile the program
126377
126376
  writeLog("CreatingProgramWith::");
126378
126377
  writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
@@ -126383,7 +126382,7 @@ var ts;
126383
126382
  hasChangedCompilerOptions = false;
126384
126383
  hasChangedConfigFileParsingErrors = false;
126385
126384
  resolutionCache.startCachingPerDirectoryResolution();
126386
- compilerHost.hasInvalidatedResolution = hasInvalidatedResolution;
126385
+ compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;
126387
126386
  compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;
126388
126387
  var oldProgram = getCurrentProgram();
126389
126388
  builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
@@ -139586,7 +139585,7 @@ var ts;
139586
139585
  break;
139587
139586
  case 202 /* SyntaxKind.ImportType */:
139588
139587
  // Only check for typeof import('xyz')
139589
- if (direct.isTypeOf && !direct.qualifier && isExported(direct)) {
139588
+ if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported(direct)) {
139590
139589
  addIndirectUser(direct.getSourceFile(), /** addTransitiveDependencies */ true);
139591
139590
  }
139592
139591
  directImports.push(direct);
@@ -168748,7 +168747,7 @@ var ts;
168748
168747
  var rootFileNames = host.getScriptFileNames().slice();
168749
168748
  // Get a fresh cache of the host information
168750
168749
  var newSettings = host.getCompilationSettings() || getDefaultCompilerOptions();
168751
- var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;
168750
+ var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
168752
168751
  var hasChangedAutomaticTypeDirectiveNames = ts.maybeBind(host, host.hasChangedAutomaticTypeDirectiveNames);
168753
168752
  var projectReferences = (_b = host.getProjectReferences) === null || _b === void 0 ? void 0 : _b.call(host);
168754
168753
  var parsedCommandLines;
@@ -168779,7 +168778,7 @@ var ts;
168779
168778
  },
168780
168779
  onReleaseOldSourceFile: onReleaseOldSourceFile,
168781
168780
  onReleaseParsedCommandLine: onReleaseParsedCommandLine,
168782
- hasInvalidatedResolution: hasInvalidatedResolution,
168781
+ hasInvalidatedResolutions: hasInvalidatedResolutions,
168783
168782
  hasChangedAutomaticTypeDirectiveNames: hasChangedAutomaticTypeDirectiveNames,
168784
168783
  trace: ts.maybeBind(host, host.trace),
168785
168784
  resolveModuleNames: ts.maybeBind(host, host.resolveModuleNames),
@@ -168819,7 +168818,7 @@ var ts;
168819
168818
  // as a const variable without downleveling, doesn't crash).
168820
168819
  var documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings);
168821
168820
  // If the program is already up-to-date, we can reuse it
168822
- if (ts.isProgramUptoDate(program, rootFileNames, newSettings, function (_path, fileName) { return host.getScriptVersion(fileName); }, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
168821
+ if (ts.isProgramUptoDate(program, rootFileNames, newSettings, function (_path, fileName) { return host.getScriptVersion(fileName); }, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
168823
168822
  return;
168824
168823
  }
168825
168824
  // IMPORTANT - It is critical from this moment onward that we do not check
@@ -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.20220922");
92
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220924");
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -118820,7 +118820,7 @@ var ts;
118820
118820
  * Determines if program structure is upto date or needs to be recreated
118821
118821
  */
118822
118822
  /* @internal */
118823
- function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
118823
+ function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
118824
118824
  // If we haven't created a program yet or have changed automatic type directives, then it is not up-to-date
118825
118825
  if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
118826
118826
  return false;
@@ -118848,7 +118848,7 @@ var ts;
118848
118848
  return true;
118849
118849
  function sourceFileNotUptoDate(sourceFile) {
118850
118850
  return !sourceFileVersionUptoDate(sourceFile) ||
118851
- hasInvalidatedResolution(sourceFile.path);
118851
+ hasInvalidatedResolutions(sourceFile.path);
118852
118852
  }
118853
118853
  function sourceFileVersionUptoDate(sourceFile) {
118854
118854
  return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);
@@ -119094,7 +119094,7 @@ var ts;
119094
119094
  var moduleResolutionCache;
119095
119095
  var typeReferenceDirectiveResolutionCache;
119096
119096
  var actualResolveModuleNamesWorker;
119097
- var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;
119097
+ var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
119098
119098
  if (host.resolveModuleNames) {
119099
119099
  actualResolveModuleNamesWorker = function (moduleNames, containingFile, containingFileName, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFileName, reusedNames, redirectedReference, options, containingFile).map(function (resolved) {
119100
119100
  // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.
@@ -119541,7 +119541,7 @@ var ts;
119541
119541
  for (var i = 0; i < moduleNames.length; i++) {
119542
119542
  var moduleName = moduleNames[i];
119543
119543
  // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions
119544
- if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
119544
+ if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {
119545
119545
  var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName, getModeForResolutionAtIndex(oldSourceFile, i));
119546
119546
  if (oldResolvedModule) {
119547
119547
  if (ts.isTraceEnabled(options, host)) {
@@ -119777,7 +119777,7 @@ var ts;
119777
119777
  // tentatively approve the file
119778
119778
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
119779
119779
  }
119780
- else if (hasInvalidatedResolution(oldSourceFile.path)) {
119780
+ else if (hasInvalidatedResolutions(oldSourceFile.path)) {
119781
119781
  // 'module/types' references could have changed
119782
119782
  structureIsReused = 1 /* StructureIsReused.SafeModules */;
119783
119783
  // add file to the modified list so that we will resolve it later
@@ -123823,7 +123823,7 @@ var ts;
123823
123823
  invalidateResolutionOfFile: invalidateResolutionOfFile,
123824
123824
  invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,
123825
123825
  setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,
123826
- createHasInvalidatedResolution: createHasInvalidatedResolution,
123826
+ createHasInvalidatedResolutions: createHasInvalidatedResolutions,
123827
123827
  isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,
123828
123828
  updateTypeRootsWatch: updateTypeRootsWatch,
123829
123829
  closeTypeRootsWatch: closeTypeRootsWatch,
@@ -123878,17 +123878,13 @@ var ts;
123878
123878
  var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);
123879
123879
  return !!value && !!value.length;
123880
123880
  }
123881
- function createHasInvalidatedResolution(forceAllFilesAsInvalidated) {
123881
+ function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {
123882
123882
  // Ensure pending resolutions are applied
123883
123883
  invalidateResolutionsOfFailedLookupLocations();
123884
- if (forceAllFilesAsInvalidated) {
123885
- // Any file asked would have invalidated resolution
123886
- filesWithInvalidatedResolutions = undefined;
123887
- return ts.returnTrue;
123888
- }
123889
123884
  var collected = filesWithInvalidatedResolutions;
123890
123885
  filesWithInvalidatedResolutions = undefined;
123891
- return function (path) { return (!!collected && collected.has(path)) ||
123886
+ return function (path) { return customHasInvalidatedResolutions(path) ||
123887
+ !!(collected === null || collected === void 0 ? void 0 : collected.has(path)) ||
123892
123888
  isFileWithInvalidatedNonRelativeUnresolvedImports(path); };
123893
123889
  }
123894
123890
  function startCachingPerDirectoryResolution() {
@@ -126268,6 +126264,10 @@ var ts;
126268
126264
  ts.maybeBind(host, host.getModuleResolutionCache) :
126269
126265
  (function () { return resolutionCache.getModuleResolutionCache(); });
126270
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;
126271
126271
  builderProgram = readBuilderProgram(compilerOptions, compilerHost);
126272
126272
  synchronizeProgram();
126273
126273
  // Update the wild card directory watch
@@ -126333,10 +126333,9 @@ var ts;
126333
126333
  resolutionCache.clear();
126334
126334
  }
126335
126335
  }
126336
- // All resolutions are invalid if user provided resolutions
126337
- var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution);
126336
+ var hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
126338
126337
  var _a = ts.changeCompilerHostLikeToUseCache(compilerHost, toPath), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile;
126339
- if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
126338
+ if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
126340
126339
  if (hasChangedConfigFileParsingErrors) {
126341
126340
  if (reportFileChangeDetectedOnCreateProgram) {
126342
126341
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -126349,7 +126348,7 @@ var ts;
126349
126348
  if (reportFileChangeDetectedOnCreateProgram) {
126350
126349
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
126351
126350
  }
126352
- createNewProgram(hasInvalidatedResolution);
126351
+ createNewProgram(hasInvalidatedResolutions);
126353
126352
  }
126354
126353
  reportFileChangeDetectedOnCreateProgram = false;
126355
126354
  if (host.afterProgramCreate && program !== builderProgram) {
@@ -126362,7 +126361,7 @@ var ts;
126362
126361
  compilerHost.writeFile = originalWriteFile;
126363
126362
  return builderProgram;
126364
126363
  }
126365
- function createNewProgram(hasInvalidatedResolution) {
126364
+ function createNewProgram(hasInvalidatedResolutions) {
126366
126365
  // Compile the program
126367
126366
  writeLog("CreatingProgramWith::");
126368
126367
  writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
@@ -126373,7 +126372,7 @@ var ts;
126373
126372
  hasChangedCompilerOptions = false;
126374
126373
  hasChangedConfigFileParsingErrors = false;
126375
126374
  resolutionCache.startCachingPerDirectoryResolution();
126376
- compilerHost.hasInvalidatedResolution = hasInvalidatedResolution;
126375
+ compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;
126377
126376
  compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;
126378
126377
  var oldProgram = getCurrentProgram();
126379
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": "使用综合的“默认”成员。",
@@ -1474,6 +1474,7 @@
1474
1474
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 標籤的 '{0}' 屬性只能有一個 '{1}' 類型的子系,但提供的子系卻有多個。",
1475
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}',但僅提供的子系只有一個。",
1476
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}'。",
1477
1478
  "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此條件一律會傳回 '{0}',因為 JavaScript 會依參照而非值比較物件。",
1478
1479
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "因為此 '{0}' 一律會被定義,所以此條件一律傳回 True。",
1479
1480
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?",
@@ -1648,6 +1649,8 @@
1648
1649
  "Updating_output_of_project_0_6373": "正在更新專案 '{0}' 的輸出...",
1649
1650
  "Updating_output_timestamps_of_project_0_6359": "正在更新專案 '{0}' 的輸出時間戳記...",
1650
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'。",
1651
1654
  "Use_element_access_for_0_95145": "對 '{0}' 使用元素存取",
1652
1655
  "Use_element_access_for_all_undeclared_properties_95146": "對所有未宣告的屬性使用元素存取。",
1653
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.20220922",
5
+ "version": "4.9.0-dev.20220924",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -29,18 +29,17 @@
29
29
  "node": ">=4.2.0"
30
30
  },
31
31
  "files": [
32
- "./bin",
33
- "./lib",
34
- "!./lib/enu",
35
- "./LICENSE.txt",
36
- "./README.md",
37
- "./SECURITY.md",
38
- "./ThirdPartyNoticeText.txt",
32
+ "bin",
33
+ "lib",
34
+ "!lib/enu",
35
+ "LICENSE.txt",
36
+ "README.md",
37
+ "SECURITY.md",
38
+ "ThirdPartyNoticeText.txt",
39
39
  "!**/.gitattributes"
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@octokit/rest": "latest",
43
- "@types/async": "latest",
44
43
  "@types/chai": "latest",
45
44
  "@types/fs-extra": "^9.0.13",
46
45
  "@types/glob": "latest",
@@ -62,7 +61,6 @@
62
61
  "@typescript-eslint/eslint-plugin": "^5.33.1",
63
62
  "@typescript-eslint/parser": "^5.33.1",
64
63
  "@typescript-eslint/utils": "^5.33.1",
65
- "async": "latest",
66
64
  "azure-devops-node-api": "^11.2.0",
67
65
  "chai": "latest",
68
66
  "chalk": "^4.1.2",