@typescript-deploys/pr-build 5.1.0-pr-53961-11 → 5.1.0-pr-53995-22
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 +5 -2
- package/lib/tsserver.js +5 -2
- package/lib/tsserverlibrary.js +5 -2
- package/lib/typescript.js +5 -2
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -72311,6 +72311,10 @@ function createTypeChecker(host) {
|
|
|
72311
72311
|
forEachReturnStatement(func.body, (returnStatement) => {
|
|
72312
72312
|
const expr = returnStatement.expression;
|
|
72313
72313
|
if (expr) {
|
|
72314
|
+
if (expr.kind === 212 /* CallExpression */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
|
|
72315
|
+
hasReturnOfTypeNever = true;
|
|
72316
|
+
return;
|
|
72317
|
+
}
|
|
72314
72318
|
let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
|
|
72315
72319
|
if (functionFlags & 2 /* Async */) {
|
|
72316
72320
|
type = unwrapAwaitedType(checkAwaitedType(
|
|
@@ -72602,9 +72606,8 @@ function createTypeChecker(host) {
|
|
|
72602
72606
|
if (symbol) {
|
|
72603
72607
|
if (isReadonlySymbol(symbol)) {
|
|
72604
72608
|
error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
|
|
72605
|
-
} else {
|
|
72606
|
-
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
72607
72609
|
}
|
|
72610
|
+
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
72608
72611
|
}
|
|
72609
72612
|
return booleanType;
|
|
72610
72613
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -76961,6 +76961,10 @@ function createTypeChecker(host) {
|
|
|
76961
76961
|
forEachReturnStatement(func.body, (returnStatement) => {
|
|
76962
76962
|
const expr = returnStatement.expression;
|
|
76963
76963
|
if (expr) {
|
|
76964
|
+
if (expr.kind === 212 /* CallExpression */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
|
|
76965
|
+
hasReturnOfTypeNever = true;
|
|
76966
|
+
return;
|
|
76967
|
+
}
|
|
76964
76968
|
let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
|
|
76965
76969
|
if (functionFlags & 2 /* Async */) {
|
|
76966
76970
|
type = unwrapAwaitedType(checkAwaitedType(
|
|
@@ -77252,9 +77256,8 @@ function createTypeChecker(host) {
|
|
|
77252
77256
|
if (symbol) {
|
|
77253
77257
|
if (isReadonlySymbol(symbol)) {
|
|
77254
77258
|
error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
|
|
77255
|
-
} else {
|
|
77256
|
-
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
77257
77259
|
}
|
|
77260
|
+
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
77258
77261
|
}
|
|
77259
77262
|
return booleanType;
|
|
77260
77263
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -74753,6 +74753,10 @@ ${lanes.join("\n")}
|
|
|
74753
74753
|
forEachReturnStatement(func.body, (returnStatement) => {
|
|
74754
74754
|
const expr = returnStatement.expression;
|
|
74755
74755
|
if (expr) {
|
|
74756
|
+
if (expr.kind === 212 /* CallExpression */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
|
|
74757
|
+
hasReturnOfTypeNever = true;
|
|
74758
|
+
return;
|
|
74759
|
+
}
|
|
74756
74760
|
let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
|
|
74757
74761
|
if (functionFlags & 2 /* Async */) {
|
|
74758
74762
|
type = unwrapAwaitedType(checkAwaitedType(
|
|
@@ -75044,9 +75048,8 @@ ${lanes.join("\n")}
|
|
|
75044
75048
|
if (symbol) {
|
|
75045
75049
|
if (isReadonlySymbol(symbol)) {
|
|
75046
75050
|
error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
|
|
75047
|
-
} else {
|
|
75048
|
-
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
75049
75051
|
}
|
|
75052
|
+
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
75050
75053
|
}
|
|
75051
75054
|
return booleanType;
|
|
75052
75055
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -74753,6 +74753,10 @@ ${lanes.join("\n")}
|
|
|
74753
74753
|
forEachReturnStatement(func.body, (returnStatement) => {
|
|
74754
74754
|
const expr = returnStatement.expression;
|
|
74755
74755
|
if (expr) {
|
|
74756
|
+
if (expr.kind === 212 /* CallExpression */ && checkExpressionCached(expr.expression).symbol === func.symbol) {
|
|
74757
|
+
hasReturnOfTypeNever = true;
|
|
74758
|
+
return;
|
|
74759
|
+
}
|
|
74756
74760
|
let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);
|
|
74757
74761
|
if (functionFlags & 2 /* Async */) {
|
|
74758
74762
|
type = unwrapAwaitedType(checkAwaitedType(
|
|
@@ -75044,9 +75048,8 @@ ${lanes.join("\n")}
|
|
|
75044
75048
|
if (symbol) {
|
|
75045
75049
|
if (isReadonlySymbol(symbol)) {
|
|
75046
75050
|
error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
|
|
75047
|
-
} else {
|
|
75048
|
-
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
75049
75051
|
}
|
|
75052
|
+
checkDeleteExpressionMustBeOptional(expr, symbol);
|
|
75050
75053
|
}
|
|
75051
75054
|
return booleanType;
|
|
75052
75055
|
}
|
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.1.0-pr-
|
|
5
|
+
"version": "5.1.0-pr-53995-22",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"node": "14.21.1",
|
|
117
117
|
"npm": "8.19.3"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "6112d3559be57ec36685a55f16cdee3e5d42cbbd"
|
|
120
120
|
}
|