@typescript-deploys/pr-build 5.8.0-pr-61071-4 → 5.8.0-pr-61077-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
@@ -62831,6 +62831,9 @@ function createTypeChecker(host) {
62831
62831
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
62832
62832
  const checkType = root.checkType;
62833
62833
  let distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
62834
+ if (distributionType && isNoInferType(distributionType)) {
62835
+ distributionType = distributionType.baseType;
62836
+ }
62834
62837
  let narrowingBaseType;
62835
62838
  const forNarrowing = distributionType && isNarrowingSubstitutionType(distributionType) && isNarrowableConditionalType(type, mapper);
62836
62839
  if (forNarrowing) {
@@ -76770,7 +76773,7 @@ function createTypeChecker(host) {
76770
76773
  }
76771
76774
  const returnType = getReturnTypeOfSignature(signature);
76772
76775
  if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) {
76773
- return getESSymbolLikeTypeForNode(walkUpOuterExpressions(node));
76776
+ return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent));
76774
76777
  }
76775
76778
  if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) {
76776
76779
  if (!isDottedName(node.expression)) {
package/lib/typescript.js CHANGED
@@ -67441,6 +67441,9 @@ function createTypeChecker(host) {
67441
67441
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
67442
67442
  const checkType = root.checkType;
67443
67443
  let distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
67444
+ if (distributionType && isNoInferType(distributionType)) {
67445
+ distributionType = distributionType.baseType;
67446
+ }
67444
67447
  let narrowingBaseType;
67445
67448
  const forNarrowing = distributionType && isNarrowingSubstitutionType(distributionType) && isNarrowableConditionalType(type, mapper);
67446
67449
  if (forNarrowing) {
@@ -81380,7 +81383,7 @@ function createTypeChecker(host) {
81380
81383
  }
81381
81384
  const returnType = getReturnTypeOfSignature(signature);
81382
81385
  if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) {
81383
- return getESSymbolLikeTypeForNode(walkUpOuterExpressions(node));
81386
+ return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent));
81384
81387
  }
81385
81388
  if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) {
81386
81389
  if (!isDottedName(node.expression)) {
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.8.0-pr-61071-4",
5
+ "version": "5.8.0-pr-61077-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [