@typescript-deploys/pr-build 5.2.0-pr-48838-5 → 5.2.0-pr-54477-10
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 +10 -7
- package/lib/tsserver.js +10 -7
- package/lib/tsserverlibrary.js +10 -7
- package/lib/typescript.js +10 -7
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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 = "5.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230619`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -67202,7 +67202,7 @@ function createTypeChecker(host) {
|
|
|
67202
67202
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
67203
67203
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
67204
67204
|
const inferenceContext = getInferenceContext(node);
|
|
67205
|
-
if (inferenceContext &&
|
|
67205
|
+
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
67206
67206
|
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
67207
67207
|
}
|
|
67208
67208
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
@@ -74222,16 +74222,19 @@ function createTypeChecker(host) {
|
|
|
74222
74222
|
}
|
|
74223
74223
|
}
|
|
74224
74224
|
}
|
|
74225
|
-
function
|
|
74225
|
+
function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
|
|
74226
74226
|
const signature = getSingleCallSignature(funcType);
|
|
74227
|
-
if (signature
|
|
74228
|
-
|
|
74227
|
+
if (signature) {
|
|
74228
|
+
const returnType = getReturnTypeOfSignature(signature);
|
|
74229
|
+
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
74230
|
+
return returnType;
|
|
74231
|
+
}
|
|
74229
74232
|
}
|
|
74230
74233
|
}
|
|
74231
74234
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
74232
74235
|
const funcType = checkExpression(expr.expression);
|
|
74233
74236
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
74234
|
-
const returnType =
|
|
74237
|
+
const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
|
|
74235
74238
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
74236
74239
|
}
|
|
74237
74240
|
function getTypeOfExpression(node) {
|
|
@@ -74276,7 +74279,7 @@ function createTypeChecker(host) {
|
|
|
74276
74279
|
/*requireStringLiteralLikeArgument*/
|
|
74277
74280
|
true
|
|
74278
74281
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
74279
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
74282
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
|
|
74280
74283
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
74281
74284
|
return getTypeFromTypeNode(expr.type);
|
|
74282
74285
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
package/lib/tsserver.js
CHANGED
|
@@ -2305,7 +2305,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2305
2305
|
|
|
2306
2306
|
// src/compiler/corePublic.ts
|
|
2307
2307
|
var versionMajorMinor = "5.2";
|
|
2308
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2308
|
+
var version = `${versionMajorMinor}.0-insiders.20230619`;
|
|
2309
2309
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2310
2310
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2311
2311
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -71843,7 +71843,7 @@ function createTypeChecker(host) {
|
|
|
71843
71843
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
71844
71844
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
71845
71845
|
const inferenceContext = getInferenceContext(node);
|
|
71846
|
-
if (inferenceContext &&
|
|
71846
|
+
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
71847
71847
|
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
71848
71848
|
}
|
|
71849
71849
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
@@ -78863,16 +78863,19 @@ function createTypeChecker(host) {
|
|
|
78863
78863
|
}
|
|
78864
78864
|
}
|
|
78865
78865
|
}
|
|
78866
|
-
function
|
|
78866
|
+
function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
|
|
78867
78867
|
const signature = getSingleCallSignature(funcType);
|
|
78868
|
-
if (signature
|
|
78869
|
-
|
|
78868
|
+
if (signature) {
|
|
78869
|
+
const returnType = getReturnTypeOfSignature(signature);
|
|
78870
|
+
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
78871
|
+
return returnType;
|
|
78872
|
+
}
|
|
78870
78873
|
}
|
|
78871
78874
|
}
|
|
78872
78875
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
78873
78876
|
const funcType = checkExpression(expr.expression);
|
|
78874
78877
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
78875
|
-
const returnType =
|
|
78878
|
+
const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
|
|
78876
78879
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
78877
78880
|
}
|
|
78878
78881
|
function getTypeOfExpression(node) {
|
|
@@ -78917,7 +78920,7 @@ function createTypeChecker(host) {
|
|
|
78917
78920
|
/*requireStringLiteralLikeArgument*/
|
|
78918
78921
|
true
|
|
78919
78922
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
78920
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
78923
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
|
|
78921
78924
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
78922
78925
|
return getTypeFromTypeNode(expr.type);
|
|
78923
78926
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230619`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -69632,7 +69632,7 @@ ${lanes.join("\n")}
|
|
|
69632
69632
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
69633
69633
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
69634
69634
|
const inferenceContext = getInferenceContext(node);
|
|
69635
|
-
if (inferenceContext &&
|
|
69635
|
+
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
69636
69636
|
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
69637
69637
|
}
|
|
69638
69638
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
@@ -76652,16 +76652,19 @@ ${lanes.join("\n")}
|
|
|
76652
76652
|
}
|
|
76653
76653
|
}
|
|
76654
76654
|
}
|
|
76655
|
-
function
|
|
76655
|
+
function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
|
|
76656
76656
|
const signature = getSingleCallSignature(funcType);
|
|
76657
|
-
if (signature
|
|
76658
|
-
|
|
76657
|
+
if (signature) {
|
|
76658
|
+
const returnType = getReturnTypeOfSignature(signature);
|
|
76659
|
+
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
76660
|
+
return returnType;
|
|
76661
|
+
}
|
|
76659
76662
|
}
|
|
76660
76663
|
}
|
|
76661
76664
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
76662
76665
|
const funcType = checkExpression(expr.expression);
|
|
76663
76666
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
76664
|
-
const returnType =
|
|
76667
|
+
const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
|
|
76665
76668
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
76666
76669
|
}
|
|
76667
76670
|
function getTypeOfExpression(node) {
|
|
@@ -76706,7 +76709,7 @@ ${lanes.join("\n")}
|
|
|
76706
76709
|
/*requireStringLiteralLikeArgument*/
|
|
76707
76710
|
true
|
|
76708
76711
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76709
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
76712
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
|
|
76710
76713
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
76711
76714
|
return getTypeFromTypeNode(expr.type);
|
|
76712
76715
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230619`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -69632,7 +69632,7 @@ ${lanes.join("\n")}
|
|
|
69632
69632
|
function instantiateContextualType(contextualType, node, contextFlags) {
|
|
69633
69633
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
69634
69634
|
const inferenceContext = getInferenceContext(node);
|
|
69635
|
-
if (inferenceContext &&
|
|
69635
|
+
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
69636
69636
|
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
69637
69637
|
}
|
|
69638
69638
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
@@ -76652,16 +76652,19 @@ ${lanes.join("\n")}
|
|
|
76652
76652
|
}
|
|
76653
76653
|
}
|
|
76654
76654
|
}
|
|
76655
|
-
function
|
|
76655
|
+
function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
|
|
76656
76656
|
const signature = getSingleCallSignature(funcType);
|
|
76657
|
-
if (signature
|
|
76658
|
-
|
|
76657
|
+
if (signature) {
|
|
76658
|
+
const returnType = getReturnTypeOfSignature(signature);
|
|
76659
|
+
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
76660
|
+
return returnType;
|
|
76661
|
+
}
|
|
76659
76662
|
}
|
|
76660
76663
|
}
|
|
76661
76664
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
76662
76665
|
const funcType = checkExpression(expr.expression);
|
|
76663
76666
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
76664
|
-
const returnType =
|
|
76667
|
+
const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
|
|
76665
76668
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
76666
76669
|
}
|
|
76667
76670
|
function getTypeOfExpression(node) {
|
|
@@ -76706,7 +76709,7 @@ ${lanes.join("\n")}
|
|
|
76706
76709
|
/*requireStringLiteralLikeArgument*/
|
|
76707
76710
|
true
|
|
76708
76711
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76709
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
76712
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
|
|
76710
76713
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
76711
76714
|
return getTypeFromTypeNode(expr.type);
|
|
76712
76715
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230619`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54477-10",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "34d289ed91d6d5fe33db36a73407a2cb75cd9ef6"
|
|
119
119
|
}
|