@typescript-deploys/pr-build 4.9.0-pr-50903-10 → 4.9.0-pr-50976-13

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.
@@ -239,9 +239,9 @@ interface String {
239
239
  match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
240
240
 
241
241
  /**
242
- * Replaces first match with string or all matches with RegExp.
243
- * @param searchValue A string or RegExp search value.
244
- * @param replaceValue A string containing the text to replace for match.
242
+ * Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
243
+ * @param searchValue An object that supports searching for and replacing matches within a string.
244
+ * @param replaceValue The replacement text.
245
245
  */
246
246
  replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
247
247
 
package/lib/lib.es5.d.ts CHANGED
@@ -443,8 +443,8 @@ interface String {
443
443
 
444
444
  /**
445
445
  * Replaces text in a string, using a regular expression or search string.
446
- * @param searchValue A string to search for.
447
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
446
+ * @param searchValue A string or regular expression to search for.
447
+ * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
448
448
  */
449
449
  replace(searchValue: string | RegExp, replaceValue: string): string;
450
450
 
@@ -1474,7 +1474,7 @@
1474
1474
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Element prop „{0}” tego tagu JSX oczekuje pojedynczego elementu podrzędnego typu „{1}”, ale podano wiele elementów podrzędnych.",
1475
1475
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Element prop „{0}” tego tagu JSX oczekuje typu „{1}”, który wymaga wielu elementów podrzędnych, ale podano tylko jeden element podrzędny.",
1476
1476
  "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "To porównanie wydaje się niezamierzone, ponieważ typy „{0}” i „{1}” nie nakładają się na siebie.",
1477
- "This_condition_will_always_return_0_2845": "This condition will always return '{0}'.",
1477
+ "This_condition_will_always_return_0_2845": "Ten warunek będzie zawsze zwracać wartość „{0}”.",
1478
1478
  "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Ten warunek zawsze będzie zwracać wartość „{0}”, ponieważ język JavaScript porównuje obiekty według odwołania, a nie wartości.",
1479
1479
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Ten warunek będzie zawsze zwracać wartość true, ponieważ wartość '{0}' jest zawsze prawdziwa.",
1480
1480
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Ten warunek będzie zawsze zwracał wartość true, ponieważ funkcja jest zawsze zdefiniowana. Czy chcesz wywołać ją zamiast tego?",
@@ -1649,8 +1649,8 @@
1649
1649
  "Updating_output_of_project_0_6373": "Trwa aktualizowanie danych wyjściowych projektu „{0}”...",
1650
1650
  "Updating_output_timestamps_of_project_0_6359": "Trwa aktualizowanie sygnatury czasowej danych wyjściowych projektu „{0}”...",
1651
1651
  "Updating_unchanged_output_timestamps_of_project_0_6371": "Trwa aktualizowanie niezmienionych sygnatur czasowych danych wyjściowych projektu „{0}”...",
1652
- "Use_0_95174": "Use `{0}`.",
1653
- "Use_Number_isNaN_in_all_conditions_95175": "Use `Number.isNaN` in all conditions.",
1652
+ "Use_0_95174": "Użyj „{0}”.",
1653
+ "Use_Number_isNaN_in_all_conditions_95175": "Użyj wartości „Number.isNaN” we wszystkich warunkach.",
1654
1654
  "Use_element_access_for_0_95145": "Użyj dostępu do elementu w przypadku elementu „{0}”",
1655
1655
  "Use_element_access_for_all_undeclared_properties_95146": "Użyj dostępu do elementu w przypadku wszystkich niezadeklarowanych właściwości.",
1656
1656
  "Use_synthetic_default_member_95016": "Użyj syntetycznej składowej „default”.",
@@ -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": "Bu JSX etiketinin '{0}' özelliği, '{1}' türünde tek bir alt öğe bekliyor ancak birden çok alt öğe sağlandı.",
1475
1475
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Bu JSX etiketinin '{0}' özelliği, birden çok alt öğe gerektiren '{1}' türünü bekliyor ancak yalnızca tek bir alt öğe sağlandı.",
1476
1476
  "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}' ve '{1}' türlerinde çakışma olmadığından bu karşılaştırma yanlışlıkla yapılmış gibi görünüyor.",
1477
+ "This_condition_will_always_return_0_2845": "Bu koşul her zaman '{0}' döndürür.",
1477
1478
  "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript nesneleri değer göre değil başvuruya göre karşılaştırdığından bu koşul her zaman '{0}' değerini döndürür.",
1478
1479
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Bu '{0}' her zaman tanımlandığı için bu koşul her zaman doğru olacaktır.",
1479
1480
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "İşlev her zaman tanımlı olduğundan bu koşul her zaman true döndürür. Bunun yerine işlevi çağırmayı mı istediniz?",
@@ -1648,6 +1649,8 @@
1648
1649
  "Updating_output_of_project_0_6373": "'{0}' projesinin çıkışı güncelleştiriliyor...",
1649
1650
  "Updating_output_timestamps_of_project_0_6359": "'{0}' projesinin çıkış zaman damgaları güncelleştiriliyor...",
1650
1651
  "Updating_unchanged_output_timestamps_of_project_0_6371": "'{0}' projesinin değiştirilmemiş çıkış zaman damgaları güncelleştiriliyor...",
1652
+ "Use_0_95174": "`{0}` kullanın.",
1653
+ "Use_Number_isNaN_in_all_conditions_95175": "Tüm koşullarda `Number.isNaN` kullanın.",
1651
1654
  "Use_element_access_for_0_95145": "'{0}' için öğe erişimi kullan",
1652
1655
  "Use_element_access_for_all_undeclared_properties_95146": "Tüm bildirilmemiş özellikler için öğe erişimi kullanın.",
1653
1656
  "Use_synthetic_default_member_95016": "Yapay 'default' üyesini kullanın.",
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220922");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220929");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -2744,7 +2744,9 @@ var ts;
2744
2744
  (function (ts) {
2745
2745
  var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i;
2746
2746
  var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i;
2747
+ var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i;
2747
2748
  var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i;
2749
+ var buildPartRegExp = /^[a-z0-9-]+$/i;
2748
2750
  var numericIdentifierRegExp = /^(0|[1-9]\d*)$/;
2749
2751
  var Version = (function () {
2750
2752
  function Version(major, minor, patch, prerelease, build) {
@@ -2759,13 +2761,15 @@ var ts;
2759
2761
  ts.Debug.assert(major >= 0, "Invalid argument: major");
2760
2762
  ts.Debug.assert(minor >= 0, "Invalid argument: minor");
2761
2763
  ts.Debug.assert(patch >= 0, "Invalid argument: patch");
2762
- ts.Debug.assert(!prerelease || prereleaseRegExp.test(prerelease), "Invalid argument: prerelease");
2763
- ts.Debug.assert(!build || buildRegExp.test(build), "Invalid argument: build");
2764
+ var prereleaseArray = prerelease ? ts.isArray(prerelease) ? prerelease : prerelease.split(".") : ts.emptyArray;
2765
+ var buildArray = build ? ts.isArray(build) ? build : build.split(".") : ts.emptyArray;
2766
+ ts.Debug.assert(ts.every(prereleaseArray, function (s) { return prereleasePartRegExp.test(s); }), "Invalid argument: prerelease");
2767
+ ts.Debug.assert(ts.every(buildArray, function (s) { return buildPartRegExp.test(s); }), "Invalid argument: build");
2764
2768
  this.major = major;
2765
2769
  this.minor = minor;
2766
2770
  this.patch = patch;
2767
- this.prerelease = prerelease ? prerelease.split(".") : ts.emptyArray;
2768
- this.build = build ? build.split(".") : ts.emptyArray;
2771
+ this.prerelease = prereleaseArray;
2772
+ this.build = buildArray;
2769
2773
  }
2770
2774
  Version.tryParse = function (text) {
2771
2775
  var result = tryParseComponents(text);
@@ -2792,6 +2796,10 @@ var ts;
2792
2796
  default: return ts.Debug.assertNever(field);
2793
2797
  }
2794
2798
  };
2799
+ Version.prototype.with = function (fields) {
2800
+ var _a = fields.major, major = _a === void 0 ? this.major : _a, _b = fields.minor, minor = _b === void 0 ? this.minor : _b, _c = fields.patch, patch = _c === void 0 ? this.patch : _c, _d = fields.prerelease, prerelease = _d === void 0 ? this.prerelease : _d, _e = fields.build, build = _e === void 0 ? this.build : _e;
2801
+ return new Version(major, minor, patch, prerelease, build);
2802
+ };
2795
2803
  Version.prototype.toString = function () {
2796
2804
  var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
2797
2805
  if (ts.some(this.prerelease))
@@ -2800,7 +2808,7 @@ var ts;
2800
2808
  result += "+".concat(this.build.join("."));
2801
2809
  return result;
2802
2810
  };
2803
- Version.zero = new Version(0, 0, 0);
2811
+ Version.zero = new Version(0, 0, 0, ["0"]);
2804
2812
  return Version;
2805
2813
  }());
2806
2814
  ts.Version = Version;
@@ -2950,19 +2958,20 @@ var ts;
2950
2958
  break;
2951
2959
  case "<":
2952
2960
  case ">=":
2953
- comparators.push(createComparator(operator, version));
2961
+ comparators.push(isWildcard(minor) || isWildcard(patch) ? createComparator(operator, version.with({ prerelease: "0" })) :
2962
+ createComparator(operator, version));
2954
2963
  break;
2955
2964
  case "<=":
2956
2965
  case ">":
2957
- comparators.push(isWildcard(minor) ? createComparator(operator === "<=" ? "<" : ">=", version.increment("major")) :
2958
- isWildcard(patch) ? createComparator(operator === "<=" ? "<" : ">=", version.increment("minor")) :
2966
+ comparators.push(isWildcard(minor) ? createComparator(operator === "<=" ? "<" : ">=", version.increment("major").with({ prerelease: "0" })) :
2967
+ isWildcard(patch) ? createComparator(operator === "<=" ? "<" : ">=", version.increment("minor").with({ prerelease: "0" })) :
2959
2968
  createComparator(operator, version));
2960
2969
  break;
2961
2970
  case "=":
2962
2971
  case undefined:
2963
2972
  if (isWildcard(minor) || isWildcard(patch)) {
2964
- comparators.push(createComparator(">=", version));
2965
- comparators.push(createComparator("<", version.increment(isWildcard(minor) ? "major" : "minor")));
2973
+ comparators.push(createComparator(">=", version.with({ prerelease: "0" })));
2974
+ comparators.push(createComparator("<", version.increment(isWildcard(minor) ? "major" : "minor").with({ prerelease: "0" })));
2966
2975
  }
2967
2976
  else {
2968
2977
  comparators.push(createComparator("=", version));
@@ -47659,13 +47668,27 @@ var ts;
47659
47668
  return getTypeFromTypeNode(typeNode);
47660
47669
  }
47661
47670
  }
47671
+ function isParameterOfContextSensitiveSignature(symbol) {
47672
+ var decl = symbol.valueDeclaration;
47673
+ if (!decl) {
47674
+ return false;
47675
+ }
47676
+ if (ts.isBindingElement(decl)) {
47677
+ decl = ts.walkUpBindingElementsAndPatterns(decl);
47678
+ }
47679
+ if (ts.isParameter(decl)) {
47680
+ return isContextSensitiveFunctionOrObjectLiteralMethod(decl.parent);
47681
+ }
47682
+ return false;
47683
+ }
47662
47684
  function getTypeOfVariableOrParameterOrProperty(symbol) {
47663
47685
  var links = getSymbolLinks(symbol);
47664
47686
  if (!links.type) {
47665
47687
  var type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
47666
- if (!links.type) {
47688
+ if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
47667
47689
  links.type = type;
47668
47690
  }
47691
+ return type;
47669
47692
  }
47670
47693
  return links.type;
47671
47694
  }
@@ -52722,7 +52745,15 @@ var ts;
52722
52745
  return accessFlags & 1 ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;
52723
52746
  }
52724
52747
  errorIfWritingToReadonlyIndex(indexInfo);
52725
- return accessFlags & 1 ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;
52748
+ if ((accessFlags & 1) &&
52749
+ !(objectType.symbol &&
52750
+ objectType.symbol.flags & (256 | 128) &&
52751
+ (indexType.symbol &&
52752
+ indexType.flags & 1024 &&
52753
+ getParentOfSymbol(indexType.symbol) === objectType.symbol))) {
52754
+ return getUnionType([indexInfo.type, undefinedType]);
52755
+ }
52756
+ return indexInfo.type;
52726
52757
  }
52727
52758
  if (indexType.flags & 131072) {
52728
52759
  return neverType;
@@ -54217,13 +54248,7 @@ var ts;
54217
54248
  return ts.hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node);
54218
54249
  }
54219
54250
  function hasContextSensitiveReturnExpression(node) {
54220
- if (node.typeParameters || ts.getEffectiveReturnTypeNode(node) || !node.body) {
54221
- return false;
54222
- }
54223
- if (node.body.kind !== 238) {
54224
- return isContextSensitive(node.body);
54225
- }
54226
- return !!ts.forEachReturnStatement(node.body, function (statement) { return !!statement.expression && isContextSensitive(statement.expression); });
54251
+ return !node.typeParameters && !ts.getEffectiveReturnTypeNode(node) && !!node.body && node.body.kind !== 238 && isContextSensitive(node.body);
54227
54252
  }
54228
54253
  function isContextSensitiveFunctionOrObjectLiteralMethod(func) {
54229
54254
  return (ts.isFunctionExpressionOrArrowFunction(func) || ts.isObjectLiteralMethod(func)) &&
@@ -55940,7 +55965,7 @@ var ts;
55940
55965
  if (relation === comparableRelation && sourceFlags & 262144) {
55941
55966
  var constraint = getConstraintOfTypeParameter(source);
55942
55967
  if (constraint && hasNonCircularBaseConstraint(source)) {
55943
- while (constraint && constraint.flags & 262144) {
55968
+ while (constraint && someType(constraint, function (c) { return !!(c.flags & 262144); })) {
55944
55969
  if (result = isRelatedTo(constraint, target, 1, false)) {
55945
55970
  return result;
55946
55971
  }
@@ -59132,7 +59157,7 @@ var ts;
59132
59157
  }
59133
59158
  if (ts.isEntityNameExpression(node.argumentExpression)) {
59134
59159
  var symbol = resolveEntityName(node.argumentExpression, 111551, true);
59135
- if (!symbol || !isConstVariable(symbol))
59160
+ if (!symbol || !(isConstVariable(symbol) || (symbol.flags & 8)))
59136
59161
  return undefined;
59137
59162
  var declaration = symbol.valueDeclaration;
59138
59163
  if (declaration === undefined)
@@ -59146,7 +59171,12 @@ var ts;
59146
59171
  }
59147
59172
  if (ts.hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node.argumentExpression)) {
59148
59173
  var initializer = ts.getEffectiveInitializer(declaration);
59149
- return initializer && tryGetNameFromType(getTypeOfExpression(initializer));
59174
+ if (initializer) {
59175
+ return tryGetNameFromType(getTypeOfExpression(initializer));
59176
+ }
59177
+ if (ts.isEnumMember(declaration)) {
59178
+ return ts.getTextOfPropertyName(declaration.name);
59179
+ }
59150
59180
  }
59151
59181
  }
59152
59182
  return undefined;
@@ -98352,7 +98382,7 @@ var ts;
98352
98382
  return { file: file, pos: pos, end: end, packageId: packageId };
98353
98383
  }
98354
98384
  ts.getReferencedFileLocation = getReferencedFileLocation;
98355
- function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
98385
+ function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
98356
98386
  if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
98357
98387
  return false;
98358
98388
  if (!ts.arrayIsEqualTo(program.getRootFileNames(), rootFileNames))
@@ -98372,7 +98402,7 @@ var ts;
98372
98402
  return true;
98373
98403
  function sourceFileNotUptoDate(sourceFile) {
98374
98404
  return !sourceFileVersionUptoDate(sourceFile) ||
98375
- hasInvalidatedResolution(sourceFile.path);
98405
+ hasInvalidatedResolutions(sourceFile.path);
98376
98406
  }
98377
98407
  function sourceFileVersionUptoDate(sourceFile) {
98378
98408
  return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);
@@ -98580,7 +98610,7 @@ var ts;
98580
98610
  var moduleResolutionCache;
98581
98611
  var typeReferenceDirectiveResolutionCache;
98582
98612
  var actualResolveModuleNamesWorker;
98583
- var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;
98613
+ var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
98584
98614
  if (host.resolveModuleNames) {
98585
98615
  actualResolveModuleNamesWorker = function (moduleNames, containingFile, containingFileName, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFileName, reusedNames, redirectedReference, options, containingFile).map(function (resolved) {
98586
98616
  if (!resolved || resolved.extension !== undefined) {
@@ -98955,7 +98985,7 @@ var ts;
98955
98985
  var predictedToResolveToAmbientModuleMarker = {};
98956
98986
  for (var i = 0; i < moduleNames.length; i++) {
98957
98987
  var moduleName = moduleNames[i];
98958
- if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
98988
+ if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {
98959
98989
  var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName, getModeForResolutionAtIndex(oldSourceFile, i));
98960
98990
  if (oldResolvedModule) {
98961
98991
  if (ts.isTraceEnabled(options, host)) {
@@ -99140,7 +99170,7 @@ var ts;
99140
99170
  }
99141
99171
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
99142
99172
  }
99143
- else if (hasInvalidatedResolution(oldSourceFile.path)) {
99173
+ else if (hasInvalidatedResolutions(oldSourceFile.path)) {
99144
99174
  structureIsReused = 1;
99145
99175
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
99146
99176
  }
@@ -101572,7 +101602,7 @@ var ts;
101572
101602
  var canCopyEmitSignatures = compilerOptions.composite &&
101573
101603
  (oldState === null || oldState === void 0 ? void 0 : oldState.emitSignatures) &&
101574
101604
  !outFilePath &&
101575
- !ts.compilerOptionsAffectDeclarationPath(compilerOptions, oldCompilerOptions);
101605
+ !ts.compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions);
101576
101606
  if (useOldState) {
101577
101607
  (_a = oldState.changedFilesSet) === null || _a === void 0 ? void 0 : _a.forEach(function (value) { return state.changedFilesSet.add(value); });
101578
101608
  if (!outFilePath && oldState.affectedFilesPendingEmit) {
@@ -102661,7 +102691,7 @@ var ts;
102661
102691
  invalidateResolutionOfFile: invalidateResolutionOfFile,
102662
102692
  invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,
102663
102693
  setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,
102664
- createHasInvalidatedResolution: createHasInvalidatedResolution,
102694
+ createHasInvalidatedResolutions: createHasInvalidatedResolutions,
102665
102695
  isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,
102666
102696
  updateTypeRootsWatch: updateTypeRootsWatch,
102667
102697
  closeTypeRootsWatch: closeTypeRootsWatch,
@@ -102715,15 +102745,12 @@ var ts;
102715
102745
  var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);
102716
102746
  return !!value && !!value.length;
102717
102747
  }
102718
- function createHasInvalidatedResolution(forceAllFilesAsInvalidated) {
102748
+ function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {
102719
102749
  invalidateResolutionsOfFailedLookupLocations();
102720
- if (forceAllFilesAsInvalidated) {
102721
- filesWithInvalidatedResolutions = undefined;
102722
- return ts.returnTrue;
102723
- }
102724
102750
  var collected = filesWithInvalidatedResolutions;
102725
102751
  filesWithInvalidatedResolutions = undefined;
102726
- return function (path) { return (!!collected && collected.has(path)) ||
102752
+ return function (path) { return customHasInvalidatedResolutions(path) ||
102753
+ !!(collected === null || collected === void 0 ? void 0 : collected.has(path)) ||
102727
102754
  isFileWithInvalidatedNonRelativeUnresolvedImports(path); };
102728
102755
  }
102729
102756
  function startCachingPerDirectoryResolution() {
@@ -104813,6 +104840,9 @@ var ts;
104813
104840
  ts.maybeBind(host, host.getModuleResolutionCache) :
104814
104841
  (function () { return resolutionCache.getModuleResolutionCache(); });
104815
104842
  var userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
104843
+ var customHasInvalidatedResolutions = userProvidedResolution ?
104844
+ ts.maybeBind(host, host.hasInvalidatedResolutions) || ts.returnTrue :
104845
+ ts.returnFalse;
104816
104846
  builderProgram = readBuilderProgram(compilerOptions, compilerHost);
104817
104847
  synchronizeProgram();
104818
104848
  watchConfigFileWildCardDirectories();
@@ -104876,9 +104906,9 @@ var ts;
104876
104906
  resolutionCache.clear();
104877
104907
  }
104878
104908
  }
104879
- var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution);
104909
+ var hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
104880
104910
  var _a = ts.changeCompilerHostLikeToUseCache(compilerHost, toPath), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile;
104881
- if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
104911
+ if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
104882
104912
  if (hasChangedConfigFileParsingErrors) {
104883
104913
  if (reportFileChangeDetectedOnCreateProgram) {
104884
104914
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -104891,7 +104921,7 @@ var ts;
104891
104921
  if (reportFileChangeDetectedOnCreateProgram) {
104892
104922
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
104893
104923
  }
104894
- createNewProgram(hasInvalidatedResolution);
104924
+ createNewProgram(hasInvalidatedResolutions);
104895
104925
  }
104896
104926
  reportFileChangeDetectedOnCreateProgram = false;
104897
104927
  if (host.afterProgramCreate && program !== builderProgram) {
@@ -104904,7 +104934,7 @@ var ts;
104904
104934
  compilerHost.writeFile = originalWriteFile;
104905
104935
  return builderProgram;
104906
104936
  }
104907
- function createNewProgram(hasInvalidatedResolution) {
104937
+ function createNewProgram(hasInvalidatedResolutions) {
104908
104938
  writeLog("CreatingProgramWith::");
104909
104939
  writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
104910
104940
  writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
@@ -104914,7 +104944,7 @@ var ts;
104914
104944
  hasChangedCompilerOptions = false;
104915
104945
  hasChangedConfigFileParsingErrors = false;
104916
104946
  resolutionCache.startCachingPerDirectoryResolution();
104917
- compilerHost.hasInvalidatedResolution = hasInvalidatedResolution;
104947
+ compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;
104918
104948
  compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;
104919
104949
  var oldProgram = getCurrentProgram();
104920
104950
  builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
@@ -106386,7 +106416,9 @@ var ts;
106386
106416
  }
106387
106417
  if (buildInfo.program) {
106388
106418
  if (((_a = buildInfo.program.changeFileSet) === null || _a === void 0 ? void 0 : _a.length) ||
106389
- (!project.options.noEmit && ((_b = buildInfo.program.affectedFilesPendingEmit) === null || _b === void 0 ? void 0 : _b.length))) {
106419
+ (!project.options.noEmit ?
106420
+ (_b = buildInfo.program.affectedFilesPendingEmit) === null || _b === void 0 ? void 0 : _b.length :
106421
+ ts.some(buildInfo.program.semanticDiagnosticsPerFile, ts.isArray))) {
106390
106422
  return {
106391
106423
  type: ts.UpToDateStatusType.OutOfDateBuildInfo,
106392
106424
  buildInfoFile: buildInfoPath