@typescript-deploys/pr-build 6.0.0-pr-62093-9 → 6.0.0-pr-62184-3

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/_tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "6.0";
21
- var version = `${versionMajorMinor}.0-insiders.20250814`;
21
+ var version = `${versionMajorMinor}.0-insiders.20250816`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -46865,27 +46865,11 @@ function createTypeChecker(host) {
46865
46865
  function runWithoutResolvedSignatureCaching(node, fn) {
46866
46866
  node = findAncestor(node, isCallLikeOrFunctionLikeExpression);
46867
46867
  if (node) {
46868
- const cachedResolvedSignatures = [];
46869
- const cachedTypes2 = [];
46870
- while (node) {
46871
- const nodeLinks2 = getNodeLinks(node);
46872
- cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]);
46873
- nodeLinks2.resolvedSignature = void 0;
46874
- if (isFunctionExpressionOrArrowFunction(node)) {
46875
- const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node));
46876
- const type = symbolLinks2.type;
46877
- cachedTypes2.push([symbolLinks2, type]);
46878
- symbolLinks2.type = void 0;
46879
- }
46880
- node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression);
46881
- }
46868
+ sourceFileWithoutResolvedSignatureCaching = getSourceFileOfNode(node);
46882
46869
  const result = fn();
46883
- for (const [nodeLinks2, resolvedSignature] of cachedResolvedSignatures) {
46884
- nodeLinks2.resolvedSignature = resolvedSignature;
46885
- }
46886
- for (const [symbolLinks2, type] of cachedTypes2) {
46887
- symbolLinks2.type = type;
46888
- }
46870
+ sourceFileWithoutResolvedSignatureCaching = void 0;
46871
+ symbolLinksWithoutResolvedSignatureCaching = void 0;
46872
+ nodeLinksWithoutResolvedSignatureCaching = void 0;
46889
46873
  return result;
46890
46874
  }
46891
46875
  return fn();
@@ -47358,7 +47342,10 @@ function createTypeChecker(host) {
47358
47342
  var maximumSuggestionCount = 10;
47359
47343
  var mergedSymbols = [];
47360
47344
  var symbolLinks = [];
47345
+ var symbolLinksWithoutResolvedSignatureCaching;
47361
47346
  var nodeLinks = [];
47347
+ var nodeLinksWithoutResolvedSignatureCaching;
47348
+ var sourceFileWithoutResolvedSignatureCaching;
47362
47349
  var flowLoopCaches = [];
47363
47350
  var flowLoopNodes = [];
47364
47351
  var flowLoopKeys = [];
@@ -47827,11 +47814,19 @@ function createTypeChecker(host) {
47827
47814
  function getSymbolLinks(symbol) {
47828
47815
  if (symbol.flags & 33554432 /* Transient */) return symbol.links;
47829
47816
  const id = getSymbolId(symbol);
47817
+ if (sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration && (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) && getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching) {
47818
+ symbolLinksWithoutResolvedSignatureCaching ?? (symbolLinksWithoutResolvedSignatureCaching = []);
47819
+ return symbolLinksWithoutResolvedSignatureCaching[id] ?? (symbolLinksWithoutResolvedSignatureCaching[id] = new SymbolLinks());
47820
+ }
47830
47821
  return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks());
47831
47822
  }
47832
47823
  function getNodeLinks(node) {
47833
47824
  const nodeId = getNodeId(node);
47834
- return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks());
47825
+ if (sourceFileWithoutResolvedSignatureCaching && (isCallLikeOrFunctionLikeExpression(node) || tryGetRootParameterDeclaration(node)) && getSourceFileOfNode(node) === sourceFileWithoutResolvedSignatureCaching) {
47826
+ nodeLinksWithoutResolvedSignatureCaching ?? (nodeLinksWithoutResolvedSignatureCaching = []);
47827
+ return nodeLinksWithoutResolvedSignatureCaching[nodeId] ?? (nodeLinksWithoutResolvedSignatureCaching[nodeId] = new NodeLinks());
47828
+ }
47829
+ return nodeLinks[nodeId] ?? (nodeLinks[nodeId] = new NodeLinks());
47835
47830
  }
47836
47831
  function getSymbol(symbols, name, meaning) {
47837
47832
  if (meaning) {
@@ -62559,7 +62554,7 @@ function createTypeChecker(host) {
62559
62554
  context.nonFixingMapper = combineTypeMappers(context.nonFixingMapper, mapper);
62560
62555
  }
62561
62556
  if (!checkTypeDeferred) {
62562
- inferTypes(context.inferences, checkType, extendsType, 1024 /* NoConstraints */ | 2048 /* AlwaysStrict */);
62557
+ inferTypes(context.inferences, checkType, extendsType, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);
62563
62558
  }
62564
62559
  combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;
62565
62560
  }
@@ -66246,7 +66241,7 @@ function createTypeChecker(host) {
66246
66241
  0 /* None */,
66247
66242
  isRelatedToWorker
66248
66243
  );
66249
- inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 1024 /* NoConstraints */ | 2048 /* AlwaysStrict */);
66244
+ inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);
66250
66245
  sourceExtends = instantiateType(sourceExtends, ctx.mapper);
66251
66246
  mapper = ctx.mapper;
66252
66247
  }
@@ -68511,7 +68506,7 @@ function createTypeChecker(host) {
68511
68506
  function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
68512
68507
  let bivariant = false;
68513
68508
  let propagationType;
68514
- let inferencePriority = 4096 /* MaxValue */;
68509
+ let inferencePriority = 2048 /* MaxValue */;
68515
68510
  let visited;
68516
68511
  let sourceStack;
68517
68512
  let targetStack;
@@ -68586,18 +68581,13 @@ function createTypeChecker(host) {
68586
68581
  if (candidate === blockedStringType) {
68587
68582
  return;
68588
68583
  }
68589
- const combinedPriority = priority | (inference.individualPriority || 0 /* None */);
68590
- if (inference.priority === void 0 || priority < (inference.priority & ~512 /* DistributiveConditional */)) {
68584
+ if (inference.priority === void 0 || priority < inference.priority) {
68591
68585
  inference.candidates = void 0;
68592
68586
  inference.contraCandidates = void 0;
68593
68587
  inference.topLevel = true;
68594
- inference.priority = combinedPriority;
68588
+ inference.priority = priority;
68595
68589
  }
68596
- if (priority === (inference.priority & ~512 /* DistributiveConditional */)) {
68597
- if (inference.priority !== combinedPriority) {
68598
- inference.priority = combinedPriority;
68599
- clearCachedInferences(inferences);
68600
- }
68590
+ if (priority === inference.priority) {
68601
68591
  if (contravariant && !bivariant) {
68602
68592
  if (!contains(inference.contraCandidates, candidate)) {
68603
68593
  inference.contraCandidates = append(inference.contraCandidates, candidate);
@@ -68679,7 +68669,7 @@ function createTypeChecker(host) {
68679
68669
  if (isGenericMappedType(source) && isGenericMappedType(target)) {
68680
68670
  invokeOnce(source, target, inferFromGenericMappedTypes);
68681
68671
  }
68682
- if (!(priority & 1024 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
68672
+ if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
68683
68673
  const apparentSource = getApparentType(source);
68684
68674
  if (apparentSource !== source && !(apparentSource.flags & (524288 /* Object */ | 2097152 /* Intersection */))) {
68685
68675
  return inferFromTypes(apparentSource, target);
@@ -68718,7 +68708,7 @@ function createTypeChecker(host) {
68718
68708
  }
68719
68709
  (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
68720
68710
  const saveInferencePriority = inferencePriority;
68721
- inferencePriority = 4096 /* MaxValue */;
68711
+ inferencePriority = 2048 /* MaxValue */;
68722
68712
  const saveExpandingFlags = expandingFlags;
68723
68713
  (sourceStack ?? (sourceStack = [])).push(source);
68724
68714
  (targetStack ?? (targetStack = [])).push(target);
@@ -68768,7 +68758,7 @@ function createTypeChecker(host) {
68768
68758
  contravariant = !contravariant;
68769
68759
  }
68770
68760
  function inferFromContravariantTypesIfStrictFunctionTypes(source, target) {
68771
- if (strictFunctionTypes || priority & 2048 /* AlwaysStrict */) {
68761
+ if (strictFunctionTypes || priority & 1024 /* AlwaysStrict */) {
68772
68762
  inferFromContravariantTypes(source, target);
68773
68763
  } else {
68774
68764
  inferFromTypes(source, target);
@@ -68809,7 +68799,7 @@ function createTypeChecker(host) {
68809
68799
  } else {
68810
68800
  for (let i = 0; i < sources.length; i++) {
68811
68801
  const saveInferencePriority = inferencePriority;
68812
- inferencePriority = 4096 /* MaxValue */;
68802
+ inferencePriority = 2048 /* MaxValue */;
68813
68803
  inferFromTypes(sources[i], t);
68814
68804
  if (inferencePriority === priority) matched[i] = true;
68815
68805
  inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */;
@@ -68888,11 +68878,6 @@ function createTypeChecker(host) {
68888
68878
  return false;
68889
68879
  }
68890
68880
  function inferToConditionalType(source, target) {
68891
- const info = target.root.isDistributive ? getInferenceInfoForType(getActualTypeVariable(target.checkType)) : void 0;
68892
- const saveIndividualPriority = info == null ? void 0 : info.individualPriority;
68893
- if (info) {
68894
- info.individualPriority = (info.individualPriority || 0 /* None */) | 512 /* DistributiveConditional */;
68895
- }
68896
68881
  if (source.flags & 16777216 /* Conditional */) {
68897
68882
  inferFromTypes(source.checkType, target.checkType);
68898
68883
  inferFromTypes(source.extendsType, target.extendsType);
@@ -68902,9 +68887,6 @@ function createTypeChecker(host) {
68902
68887
  const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)];
68903
68888
  inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 /* ContravariantConditional */ : 0);
68904
68889
  }
68905
- if (info) {
68906
- info.individualPriority = saveIndividualPriority;
68907
- }
68908
68890
  }
68909
68891
  function inferToTemplateLiteralType(source, target) {
68910
68892
  const matches = inferTypesFromTemplateLiteralType(source, target);
@@ -69145,14 +69127,14 @@ function createTypeChecker(host) {
69145
69127
  return candidates;
69146
69128
  }
69147
69129
  function getContravariantInference(inference) {
69148
- return inference.priority & 928 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
69130
+ return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
69149
69131
  }
69150
69132
  function getCovariantInference(inference, signature) {
69151
69133
  const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);
69152
69134
  const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter);
69153
69135
  const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter));
69154
69136
  const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates;
69155
- const unwidenedType = inference.priority & 928 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates);
69137
+ const unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates);
69156
69138
  return getWidenedType(unwidenedType);
69157
69139
  }
69158
69140
  function getInferredType(context, index) {
@@ -6893,11 +6893,10 @@ declare namespace ts {
6893
6893
  ContravariantConditional = 64,
6894
6894
  ReturnType = 128,
6895
6895
  LiteralKeyof = 256,
6896
- DistributiveConditional = 512,
6897
- NoConstraints = 1024,
6898
- AlwaysStrict = 2048,
6899
- MaxValue = 4096,
6900
- PriorityImpliesCombination = 928,
6896
+ NoConstraints = 512,
6897
+ AlwaysStrict = 1024,
6898
+ MaxValue = 2048,
6899
+ PriorityImpliesCombination = 416,
6901
6900
  Circularity = -1,
6902
6901
  }
6903
6902
  interface FileExtensionInfo {
package/lib/typescript.js CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "6.0";
2288
- var version = `${versionMajorMinor}.0-insiders.20250814`;
2288
+ var version = `${versionMajorMinor}.0-insiders.20250816`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6641,11 +6641,10 @@ var InferencePriority = /* @__PURE__ */ ((InferencePriority2) => {
6641
6641
  InferencePriority2[InferencePriority2["ContravariantConditional"] = 64] = "ContravariantConditional";
6642
6642
  InferencePriority2[InferencePriority2["ReturnType"] = 128] = "ReturnType";
6643
6643
  InferencePriority2[InferencePriority2["LiteralKeyof"] = 256] = "LiteralKeyof";
6644
- InferencePriority2[InferencePriority2["DistributiveConditional"] = 512] = "DistributiveConditional";
6645
- InferencePriority2[InferencePriority2["NoConstraints"] = 1024] = "NoConstraints";
6646
- InferencePriority2[InferencePriority2["AlwaysStrict"] = 2048] = "AlwaysStrict";
6647
- InferencePriority2[InferencePriority2["MaxValue"] = 4096] = "MaxValue";
6648
- InferencePriority2[InferencePriority2["PriorityImpliesCombination"] = 928] = "PriorityImpliesCombination";
6644
+ InferencePriority2[InferencePriority2["NoConstraints"] = 512] = "NoConstraints";
6645
+ InferencePriority2[InferencePriority2["AlwaysStrict"] = 1024] = "AlwaysStrict";
6646
+ InferencePriority2[InferencePriority2["MaxValue"] = 2048] = "MaxValue";
6647
+ InferencePriority2[InferencePriority2["PriorityImpliesCombination"] = 416] = "PriorityImpliesCombination";
6649
6648
  InferencePriority2[InferencePriority2["Circularity"] = -1] = "Circularity";
6650
6649
  return InferencePriority2;
6651
6650
  })(InferencePriority || {});
@@ -51474,27 +51473,11 @@ function createTypeChecker(host) {
51474
51473
  function runWithoutResolvedSignatureCaching(node, fn) {
51475
51474
  node = findAncestor(node, isCallLikeOrFunctionLikeExpression);
51476
51475
  if (node) {
51477
- const cachedResolvedSignatures = [];
51478
- const cachedTypes2 = [];
51479
- while (node) {
51480
- const nodeLinks2 = getNodeLinks(node);
51481
- cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]);
51482
- nodeLinks2.resolvedSignature = void 0;
51483
- if (isFunctionExpressionOrArrowFunction(node)) {
51484
- const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node));
51485
- const type = symbolLinks2.type;
51486
- cachedTypes2.push([symbolLinks2, type]);
51487
- symbolLinks2.type = void 0;
51488
- }
51489
- node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression);
51490
- }
51476
+ sourceFileWithoutResolvedSignatureCaching = getSourceFileOfNode(node);
51491
51477
  const result = fn();
51492
- for (const [nodeLinks2, resolvedSignature] of cachedResolvedSignatures) {
51493
- nodeLinks2.resolvedSignature = resolvedSignature;
51494
- }
51495
- for (const [symbolLinks2, type] of cachedTypes2) {
51496
- symbolLinks2.type = type;
51497
- }
51478
+ sourceFileWithoutResolvedSignatureCaching = void 0;
51479
+ symbolLinksWithoutResolvedSignatureCaching = void 0;
51480
+ nodeLinksWithoutResolvedSignatureCaching = void 0;
51498
51481
  return result;
51499
51482
  }
51500
51483
  return fn();
@@ -51967,7 +51950,10 @@ function createTypeChecker(host) {
51967
51950
  var maximumSuggestionCount = 10;
51968
51951
  var mergedSymbols = [];
51969
51952
  var symbolLinks = [];
51953
+ var symbolLinksWithoutResolvedSignatureCaching;
51970
51954
  var nodeLinks = [];
51955
+ var nodeLinksWithoutResolvedSignatureCaching;
51956
+ var sourceFileWithoutResolvedSignatureCaching;
51971
51957
  var flowLoopCaches = [];
51972
51958
  var flowLoopNodes = [];
51973
51959
  var flowLoopKeys = [];
@@ -52436,11 +52422,19 @@ function createTypeChecker(host) {
52436
52422
  function getSymbolLinks(symbol) {
52437
52423
  if (symbol.flags & 33554432 /* Transient */) return symbol.links;
52438
52424
  const id = getSymbolId(symbol);
52425
+ if (sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration && (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) && getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching) {
52426
+ symbolLinksWithoutResolvedSignatureCaching ?? (symbolLinksWithoutResolvedSignatureCaching = []);
52427
+ return symbolLinksWithoutResolvedSignatureCaching[id] ?? (symbolLinksWithoutResolvedSignatureCaching[id] = new SymbolLinks());
52428
+ }
52439
52429
  return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks());
52440
52430
  }
52441
52431
  function getNodeLinks(node) {
52442
52432
  const nodeId = getNodeId(node);
52443
- return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks());
52433
+ if (sourceFileWithoutResolvedSignatureCaching && (isCallLikeOrFunctionLikeExpression(node) || tryGetRootParameterDeclaration(node)) && getSourceFileOfNode(node) === sourceFileWithoutResolvedSignatureCaching) {
52434
+ nodeLinksWithoutResolvedSignatureCaching ?? (nodeLinksWithoutResolvedSignatureCaching = []);
52435
+ return nodeLinksWithoutResolvedSignatureCaching[nodeId] ?? (nodeLinksWithoutResolvedSignatureCaching[nodeId] = new NodeLinks());
52436
+ }
52437
+ return nodeLinks[nodeId] ?? (nodeLinks[nodeId] = new NodeLinks());
52444
52438
  }
52445
52439
  function getSymbol2(symbols, name, meaning) {
52446
52440
  if (meaning) {
@@ -67168,7 +67162,7 @@ function createTypeChecker(host) {
67168
67162
  context.nonFixingMapper = combineTypeMappers(context.nonFixingMapper, mapper);
67169
67163
  }
67170
67164
  if (!checkTypeDeferred) {
67171
- inferTypes(context.inferences, checkType, extendsType, 1024 /* NoConstraints */ | 2048 /* AlwaysStrict */);
67165
+ inferTypes(context.inferences, checkType, extendsType, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);
67172
67166
  }
67173
67167
  combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;
67174
67168
  }
@@ -70855,7 +70849,7 @@ function createTypeChecker(host) {
70855
70849
  0 /* None */,
70856
70850
  isRelatedToWorker
70857
70851
  );
70858
- inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 1024 /* NoConstraints */ | 2048 /* AlwaysStrict */);
70852
+ inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);
70859
70853
  sourceExtends = instantiateType(sourceExtends, ctx.mapper);
70860
70854
  mapper = ctx.mapper;
70861
70855
  }
@@ -73120,7 +73114,7 @@ function createTypeChecker(host) {
73120
73114
  function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) {
73121
73115
  let bivariant = false;
73122
73116
  let propagationType;
73123
- let inferencePriority = 4096 /* MaxValue */;
73117
+ let inferencePriority = 2048 /* MaxValue */;
73124
73118
  let visited;
73125
73119
  let sourceStack;
73126
73120
  let targetStack;
@@ -73195,18 +73189,13 @@ function createTypeChecker(host) {
73195
73189
  if (candidate === blockedStringType) {
73196
73190
  return;
73197
73191
  }
73198
- const combinedPriority = priority | (inference.individualPriority || 0 /* None */);
73199
- if (inference.priority === void 0 || priority < (inference.priority & ~512 /* DistributiveConditional */)) {
73192
+ if (inference.priority === void 0 || priority < inference.priority) {
73200
73193
  inference.candidates = void 0;
73201
73194
  inference.contraCandidates = void 0;
73202
73195
  inference.topLevel = true;
73203
- inference.priority = combinedPriority;
73196
+ inference.priority = priority;
73204
73197
  }
73205
- if (priority === (inference.priority & ~512 /* DistributiveConditional */)) {
73206
- if (inference.priority !== combinedPriority) {
73207
- inference.priority = combinedPriority;
73208
- clearCachedInferences(inferences);
73209
- }
73198
+ if (priority === inference.priority) {
73210
73199
  if (contravariant && !bivariant) {
73211
73200
  if (!contains(inference.contraCandidates, candidate)) {
73212
73201
  inference.contraCandidates = append(inference.contraCandidates, candidate);
@@ -73288,7 +73277,7 @@ function createTypeChecker(host) {
73288
73277
  if (isGenericMappedType(source) && isGenericMappedType(target)) {
73289
73278
  invokeOnce(source, target, inferFromGenericMappedTypes);
73290
73279
  }
73291
- if (!(priority & 1024 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
73280
+ if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {
73292
73281
  const apparentSource = getApparentType(source);
73293
73282
  if (apparentSource !== source && !(apparentSource.flags & (524288 /* Object */ | 2097152 /* Intersection */))) {
73294
73283
  return inferFromTypes(apparentSource, target);
@@ -73327,7 +73316,7 @@ function createTypeChecker(host) {
73327
73316
  }
73328
73317
  (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
73329
73318
  const saveInferencePriority = inferencePriority;
73330
- inferencePriority = 4096 /* MaxValue */;
73319
+ inferencePriority = 2048 /* MaxValue */;
73331
73320
  const saveExpandingFlags = expandingFlags;
73332
73321
  (sourceStack ?? (sourceStack = [])).push(source);
73333
73322
  (targetStack ?? (targetStack = [])).push(target);
@@ -73377,7 +73366,7 @@ function createTypeChecker(host) {
73377
73366
  contravariant = !contravariant;
73378
73367
  }
73379
73368
  function inferFromContravariantTypesIfStrictFunctionTypes(source, target) {
73380
- if (strictFunctionTypes || priority & 2048 /* AlwaysStrict */) {
73369
+ if (strictFunctionTypes || priority & 1024 /* AlwaysStrict */) {
73381
73370
  inferFromContravariantTypes(source, target);
73382
73371
  } else {
73383
73372
  inferFromTypes(source, target);
@@ -73418,7 +73407,7 @@ function createTypeChecker(host) {
73418
73407
  } else {
73419
73408
  for (let i = 0; i < sources.length; i++) {
73420
73409
  const saveInferencePriority = inferencePriority;
73421
- inferencePriority = 4096 /* MaxValue */;
73410
+ inferencePriority = 2048 /* MaxValue */;
73422
73411
  inferFromTypes(sources[i], t);
73423
73412
  if (inferencePriority === priority) matched[i] = true;
73424
73413
  inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */;
@@ -73497,11 +73486,6 @@ function createTypeChecker(host) {
73497
73486
  return false;
73498
73487
  }
73499
73488
  function inferToConditionalType(source, target) {
73500
- const info = target.root.isDistributive ? getInferenceInfoForType(getActualTypeVariable(target.checkType)) : void 0;
73501
- const saveIndividualPriority = info == null ? void 0 : info.individualPriority;
73502
- if (info) {
73503
- info.individualPriority = (info.individualPriority || 0 /* None */) | 512 /* DistributiveConditional */;
73504
- }
73505
73489
  if (source.flags & 16777216 /* Conditional */) {
73506
73490
  inferFromTypes(source.checkType, target.checkType);
73507
73491
  inferFromTypes(source.extendsType, target.extendsType);
@@ -73511,9 +73495,6 @@ function createTypeChecker(host) {
73511
73495
  const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)];
73512
73496
  inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 /* ContravariantConditional */ : 0);
73513
73497
  }
73514
- if (info) {
73515
- info.individualPriority = saveIndividualPriority;
73516
- }
73517
73498
  }
73518
73499
  function inferToTemplateLiteralType(source, target) {
73519
73500
  const matches = inferTypesFromTemplateLiteralType(source, target);
@@ -73754,14 +73735,14 @@ function createTypeChecker(host) {
73754
73735
  return candidates;
73755
73736
  }
73756
73737
  function getContravariantInference(inference) {
73757
- return inference.priority & 928 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
73738
+ return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);
73758
73739
  }
73759
73740
  function getCovariantInference(inference, signature) {
73760
73741
  const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);
73761
73742
  const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter);
73762
73743
  const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter));
73763
73744
  const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates;
73764
- const unwidenedType = inference.priority & 928 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates);
73745
+ const unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates);
73765
73746
  return getWidenedType(unwidenedType);
73766
73747
  }
73767
73748
  function getInferredType(context, index) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "6.0.0-pr-62093-9",
5
+ "version": "6.0.0-pr-62184-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [