@typescript-deploys/pr-build 5.3.0-pr-56020-20 → 5.3.0-pr-56048-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
@@ -39967,6 +39967,9 @@ function createBinder() {
39967
39967
  case 213 /* CallExpression */:
39968
39968
  return hasNarrowableArgument(expr);
39969
39969
  case 217 /* ParenthesizedExpression */:
39970
+ if (isJSDocTypeAssertion(expr)) {
39971
+ return false;
39972
+ }
39970
39973
  case 235 /* NonNullExpression */:
39971
39974
  return isNarrowingExpression(expr.expression);
39972
39975
  case 226 /* BinaryExpression */:
@@ -73351,20 +73354,8 @@ function createTypeChecker(host) {
73351
73354
  let hasReturnWithNoExpression = functionHasImplicitReturn(func);
73352
73355
  let hasReturnOfTypeNever = false;
73353
73356
  forEachReturnStatement(func.body, (returnStatement) => {
73354
- let expr = returnStatement.expression;
73357
+ const expr = returnStatement.expression;
73355
73358
  if (expr) {
73356
- expr = skipParentheses(
73357
- expr,
73358
- /*excludeJSDocTypeAssertions*/
73359
- true
73360
- );
73361
- if (functionFlags & 2 /* Async */ && expr.kind === 223 /* AwaitExpression */) {
73362
- expr = skipParentheses(
73363
- expr.expression,
73364
- /*excludeJSDocTypeAssertions*/
73365
- true
73366
- );
73367
- }
73368
73359
  if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
73369
73360
  hasReturnOfTypeNever = true;
73370
73361
  return;
package/lib/tsserver.js CHANGED
@@ -44634,6 +44634,9 @@ function createBinder() {
44634
44634
  case 213 /* CallExpression */:
44635
44635
  return hasNarrowableArgument(expr);
44636
44636
  case 217 /* ParenthesizedExpression */:
44637
+ if (isJSDocTypeAssertion(expr)) {
44638
+ return false;
44639
+ }
44637
44640
  case 235 /* NonNullExpression */:
44638
44641
  return isNarrowingExpression(expr.expression);
44639
44642
  case 226 /* BinaryExpression */:
@@ -78063,20 +78066,8 @@ function createTypeChecker(host) {
78063
78066
  let hasReturnWithNoExpression = functionHasImplicitReturn(func);
78064
78067
  let hasReturnOfTypeNever = false;
78065
78068
  forEachReturnStatement(func.body, (returnStatement) => {
78066
- let expr = returnStatement.expression;
78069
+ const expr = returnStatement.expression;
78067
78070
  if (expr) {
78068
- expr = skipParentheses(
78069
- expr,
78070
- /*excludeJSDocTypeAssertions*/
78071
- true
78072
- );
78073
- if (functionFlags & 2 /* Async */ && expr.kind === 223 /* AwaitExpression */) {
78074
- expr = skipParentheses(
78075
- expr.expression,
78076
- /*excludeJSDocTypeAssertions*/
78077
- true
78078
- );
78079
- }
78080
78071
  if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
78081
78072
  hasReturnOfTypeNever = true;
78082
78073
  return;
package/lib/typescript.js CHANGED
@@ -42481,6 +42481,9 @@ ${lanes.join("\n")}
42481
42481
  case 213 /* CallExpression */:
42482
42482
  return hasNarrowableArgument(expr);
42483
42483
  case 217 /* ParenthesizedExpression */:
42484
+ if (isJSDocTypeAssertion(expr)) {
42485
+ return false;
42486
+ }
42484
42487
  case 235 /* NonNullExpression */:
42485
42488
  return isNarrowingExpression(expr.expression);
42486
42489
  case 226 /* BinaryExpression */:
@@ -75830,20 +75833,8 @@ ${lanes.join("\n")}
75830
75833
  let hasReturnWithNoExpression = functionHasImplicitReturn(func);
75831
75834
  let hasReturnOfTypeNever = false;
75832
75835
  forEachReturnStatement(func.body, (returnStatement) => {
75833
- let expr = returnStatement.expression;
75836
+ const expr = returnStatement.expression;
75834
75837
  if (expr) {
75835
- expr = skipParentheses(
75836
- expr,
75837
- /*excludeJSDocTypeAssertions*/
75838
- true
75839
- );
75840
- if (functionFlags & 2 /* Async */ && expr.kind === 223 /* AwaitExpression */) {
75841
- expr = skipParentheses(
75842
- expr.expression,
75843
- /*excludeJSDocTypeAssertions*/
75844
- true
75845
- );
75846
- }
75847
75838
  if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
75848
75839
  hasReturnOfTypeNever = true;
75849
75840
  return;
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.3.0-pr-56020-20",
5
+ "version": "5.3.0-pr-56048-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": "255c2861a6df15f9f602ff6c283a577d34f58fab"
117
+ "gitHead": "d09aeb7782ade4b30c6b675d3cb08364e487f298"
118
118
  }