@typescript-deploys/pr-build 5.4.0-pr-57341-6 → 5.4.0-pr-57345-8

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
@@ -12929,9 +12929,6 @@ function isObjectLiteralOrClassExpressionMethodOrAccessor(node) {
12929
12929
  function isIdentifierTypePredicate(predicate) {
12930
12930
  return predicate && predicate.kind === 1 /* Identifier */;
12931
12931
  }
12932
- function isThisTypePredicate(predicate) {
12933
- return predicate && predicate.kind === 0 /* This */;
12934
- }
12935
12932
  function forEachPropertyAssignment(objectLiteral, key, callback, key2) {
12936
12933
  return forEach(objectLiteral == null ? void 0 : objectLiteral.properties, (property) => {
12937
12934
  if (!isPropertyAssignment(property))
@@ -59792,8 +59789,8 @@ function createTypeChecker(host) {
59792
59789
  if (!result) {
59793
59790
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
59794
59791
  const checkType = root.checkType;
59795
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
59796
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
59792
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
59793
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
59797
59794
  root.instantiations.set(id, result);
59798
59795
  }
59799
59796
  return result;
@@ -60712,8 +60709,6 @@ function createTypeChecker(host) {
60712
60709
  errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
60713
60710
  }
60714
60711
  return 0 /* False */;
60715
- } else if (isThisTypePredicate(targetTypePredicate)) {
60716
- result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
60717
60712
  }
60718
60713
  } else {
60719
60714
  result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
package/lib/tsserver.js CHANGED
@@ -64533,8 +64533,8 @@ function createTypeChecker(host) {
64533
64533
  if (!result) {
64534
64534
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
64535
64535
  const checkType = root.checkType;
64536
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
64537
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
64536
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
64537
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
64538
64538
  root.instantiations.set(id, result);
64539
64539
  }
64540
64540
  return result;
@@ -65453,8 +65453,6 @@ function createTypeChecker(host) {
65453
65453
  errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
65454
65454
  }
65455
65455
  return 0 /* False */;
65456
- } else if (isThisTypePredicate(targetTypePredicate)) {
65457
- result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
65458
65456
  }
65459
65457
  } else {
65460
65458
  result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
@@ -152213,7 +152211,7 @@ function compareModuleSpecifiers(a, b, importingFile, program, allowsImportingSp
152213
152211
  }
152214
152212
  function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
152215
152213
  var _a;
152216
- if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && getEmitModuleResolutionKind(compilerOptions) === 2 /* Node10 */ && isIndexFileName(fix.exportInfo.moduleFileName)) {
152214
+ if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
152217
152215
  const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
152218
152216
  return startsWith(importingFile.path, reExportDir);
152219
152217
  }
package/lib/typescript.js CHANGED
@@ -62288,8 +62288,8 @@ ${lanes.join("\n")}
62288
62288
  if (!result) {
62289
62289
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
62290
62290
  const checkType = root.checkType;
62291
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
62292
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
62291
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
62292
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
62293
62293
  root.instantiations.set(id, result);
62294
62294
  }
62295
62295
  return result;
@@ -63208,8 +63208,6 @@ ${lanes.join("\n")}
63208
63208
  errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
63209
63209
  }
63210
63210
  return 0 /* False */;
63211
- } else if (isThisTypePredicate(targetTypePredicate)) {
63212
- result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
63213
63211
  }
63214
63212
  } else {
63215
63213
  result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
@@ -150913,7 +150911,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
150913
150911
  }
150914
150912
  function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
150915
150913
  var _a;
150916
- if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && getEmitModuleResolutionKind(compilerOptions) === 2 /* Node10 */ && isIndexFileName(fix.exportInfo.moduleFileName)) {
150914
+ if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
150917
150915
  const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
150918
150916
  return startsWith(importingFile.path, reExportDir);
150919
150917
  }
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": "5.4.0-pr-57341-6",
5
+ "version": "5.4.0-pr-57345-8",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "86385b777836bffd86799b927b2b3504ad486788"
117
+ "gitHead": "5a306da8c7ffeaed05f9ede81f4d362b31a8fcd0"
118
118
  }