@typescript-deploys/pr-build 5.2.0-pr-54477-10 → 5.2.0-pr-54688-11
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 -10
- package/lib/tsserver.js +10 -10
- package/lib/tsserverlibrary.js +10 -10
- package/lib/typescript.js +10 -10
- package/lib/typingsInstaller.js +5 -2
- 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.20230620`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -28835,7 +28835,7 @@ var Parser;
|
|
|
28835
28835
|
}
|
|
28836
28836
|
const pos = getNodePos();
|
|
28837
28837
|
const type = parseUnionTypeOrHigher();
|
|
28838
|
-
if (!inDisallowConditionalTypesContext() &&
|
|
28838
|
+
if (!inDisallowConditionalTypesContext() && tryParse(parseConditionalTypeExtends)) {
|
|
28839
28839
|
const extendsType = disallowConditionalTypesAnd(parseType);
|
|
28840
28840
|
parseExpected(58 /* QuestionToken */);
|
|
28841
28841
|
const trueType = allowConditionalTypesAnd(parseType);
|
|
@@ -28845,6 +28845,9 @@ var Parser;
|
|
|
28845
28845
|
}
|
|
28846
28846
|
return type;
|
|
28847
28847
|
}
|
|
28848
|
+
function parseConditionalTypeExtends() {
|
|
28849
|
+
return parseOptional(96 /* ExtendsKeyword */) && !(parseOptional(58 /* QuestionToken */) || parseOptional(59 /* ColonToken */));
|
|
28850
|
+
}
|
|
28848
28851
|
function parseTypeAnnotation() {
|
|
28849
28852
|
return parseOptional(59 /* ColonToken */) ? parseType() : void 0;
|
|
28850
28853
|
}
|
|
@@ -74222,19 +74225,16 @@ function createTypeChecker(host) {
|
|
|
74222
74225
|
}
|
|
74223
74226
|
}
|
|
74224
74227
|
}
|
|
74225
|
-
function
|
|
74228
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
74226
74229
|
const signature = getSingleCallSignature(funcType);
|
|
74227
|
-
if (signature) {
|
|
74228
|
-
|
|
74229
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
74230
|
-
return returnType;
|
|
74231
|
-
}
|
|
74230
|
+
if (signature && !signature.typeParameters) {
|
|
74231
|
+
return getReturnTypeOfSignature(signature);
|
|
74232
74232
|
}
|
|
74233
74233
|
}
|
|
74234
74234
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
74235
74235
|
const funcType = checkExpression(expr.expression);
|
|
74236
74236
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
74237
|
-
const returnType =
|
|
74237
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
74238
74238
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
74239
74239
|
}
|
|
74240
74240
|
function getTypeOfExpression(node) {
|
|
@@ -74279,7 +74279,7 @@ function createTypeChecker(host) {
|
|
|
74279
74279
|
/*requireStringLiteralLikeArgument*/
|
|
74280
74280
|
true
|
|
74281
74281
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
74282
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
74282
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
74283
74283
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
74284
74284
|
return getTypeFromTypeNode(expr.type);
|
|
74285
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.20230620`;
|
|
2309
2309
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2310
2310
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2311
2311
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -33210,7 +33210,7 @@ var Parser;
|
|
|
33210
33210
|
}
|
|
33211
33211
|
const pos = getNodePos();
|
|
33212
33212
|
const type = parseUnionTypeOrHigher();
|
|
33213
|
-
if (!inDisallowConditionalTypesContext() &&
|
|
33213
|
+
if (!inDisallowConditionalTypesContext() && tryParse(parseConditionalTypeExtends)) {
|
|
33214
33214
|
const extendsType = disallowConditionalTypesAnd(parseType);
|
|
33215
33215
|
parseExpected(58 /* QuestionToken */);
|
|
33216
33216
|
const trueType = allowConditionalTypesAnd(parseType);
|
|
@@ -33220,6 +33220,9 @@ var Parser;
|
|
|
33220
33220
|
}
|
|
33221
33221
|
return type;
|
|
33222
33222
|
}
|
|
33223
|
+
function parseConditionalTypeExtends() {
|
|
33224
|
+
return parseOptional(96 /* ExtendsKeyword */) && !(parseOptional(58 /* QuestionToken */) || parseOptional(59 /* ColonToken */));
|
|
33225
|
+
}
|
|
33223
33226
|
function parseTypeAnnotation() {
|
|
33224
33227
|
return parseOptional(59 /* ColonToken */) ? parseType() : void 0;
|
|
33225
33228
|
}
|
|
@@ -78863,19 +78866,16 @@ function createTypeChecker(host) {
|
|
|
78863
78866
|
}
|
|
78864
78867
|
}
|
|
78865
78868
|
}
|
|
78866
|
-
function
|
|
78869
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
78867
78870
|
const signature = getSingleCallSignature(funcType);
|
|
78868
|
-
if (signature) {
|
|
78869
|
-
|
|
78870
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
78871
|
-
return returnType;
|
|
78872
|
-
}
|
|
78871
|
+
if (signature && !signature.typeParameters) {
|
|
78872
|
+
return getReturnTypeOfSignature(signature);
|
|
78873
78873
|
}
|
|
78874
78874
|
}
|
|
78875
78875
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
78876
78876
|
const funcType = checkExpression(expr.expression);
|
|
78877
78877
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
78878
|
-
const returnType =
|
|
78878
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
78879
78879
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
78880
78880
|
}
|
|
78881
78881
|
function getTypeOfExpression(node) {
|
|
@@ -78920,7 +78920,7 @@ function createTypeChecker(host) {
|
|
|
78920
78920
|
/*requireStringLiteralLikeArgument*/
|
|
78921
78921
|
true
|
|
78922
78922
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
78923
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
78923
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
78924
78924
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
78925
78925
|
return getTypeFromTypeNode(expr.type);
|
|
78926
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.20230620`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -31305,7 +31305,7 @@ ${lanes.join("\n")}
|
|
|
31305
31305
|
}
|
|
31306
31306
|
const pos = getNodePos();
|
|
31307
31307
|
const type = parseUnionTypeOrHigher();
|
|
31308
|
-
if (!inDisallowConditionalTypesContext() &&
|
|
31308
|
+
if (!inDisallowConditionalTypesContext() && tryParse(parseConditionalTypeExtends)) {
|
|
31309
31309
|
const extendsType = disallowConditionalTypesAnd(parseType);
|
|
31310
31310
|
parseExpected(58 /* QuestionToken */);
|
|
31311
31311
|
const trueType = allowConditionalTypesAnd(parseType);
|
|
@@ -31315,6 +31315,9 @@ ${lanes.join("\n")}
|
|
|
31315
31315
|
}
|
|
31316
31316
|
return type;
|
|
31317
31317
|
}
|
|
31318
|
+
function parseConditionalTypeExtends() {
|
|
31319
|
+
return parseOptional(96 /* ExtendsKeyword */) && !(parseOptional(58 /* QuestionToken */) || parseOptional(59 /* ColonToken */));
|
|
31320
|
+
}
|
|
31318
31321
|
function parseTypeAnnotation() {
|
|
31319
31322
|
return parseOptional(59 /* ColonToken */) ? parseType() : void 0;
|
|
31320
31323
|
}
|
|
@@ -76652,19 +76655,16 @@ ${lanes.join("\n")}
|
|
|
76652
76655
|
}
|
|
76653
76656
|
}
|
|
76654
76657
|
}
|
|
76655
|
-
function
|
|
76658
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
76656
76659
|
const signature = getSingleCallSignature(funcType);
|
|
76657
|
-
if (signature) {
|
|
76658
|
-
|
|
76659
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
76660
|
-
return returnType;
|
|
76661
|
-
}
|
|
76660
|
+
if (signature && !signature.typeParameters) {
|
|
76661
|
+
return getReturnTypeOfSignature(signature);
|
|
76662
76662
|
}
|
|
76663
76663
|
}
|
|
76664
76664
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
76665
76665
|
const funcType = checkExpression(expr.expression);
|
|
76666
76666
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
76667
|
-
const returnType =
|
|
76667
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
76668
76668
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
76669
76669
|
}
|
|
76670
76670
|
function getTypeOfExpression(node) {
|
|
@@ -76709,7 +76709,7 @@ ${lanes.join("\n")}
|
|
|
76709
76709
|
/*requireStringLiteralLikeArgument*/
|
|
76710
76710
|
true
|
|
76711
76711
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76712
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
76712
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
76713
76713
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
76714
76714
|
return getTypeFromTypeNode(expr.type);
|
|
76715
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.20230620`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -31305,7 +31305,7 @@ ${lanes.join("\n")}
|
|
|
31305
31305
|
}
|
|
31306
31306
|
const pos = getNodePos();
|
|
31307
31307
|
const type = parseUnionTypeOrHigher();
|
|
31308
|
-
if (!inDisallowConditionalTypesContext() &&
|
|
31308
|
+
if (!inDisallowConditionalTypesContext() && tryParse(parseConditionalTypeExtends)) {
|
|
31309
31309
|
const extendsType = disallowConditionalTypesAnd(parseType);
|
|
31310
31310
|
parseExpected(58 /* QuestionToken */);
|
|
31311
31311
|
const trueType = allowConditionalTypesAnd(parseType);
|
|
@@ -31315,6 +31315,9 @@ ${lanes.join("\n")}
|
|
|
31315
31315
|
}
|
|
31316
31316
|
return type;
|
|
31317
31317
|
}
|
|
31318
|
+
function parseConditionalTypeExtends() {
|
|
31319
|
+
return parseOptional(96 /* ExtendsKeyword */) && !(parseOptional(58 /* QuestionToken */) || parseOptional(59 /* ColonToken */));
|
|
31320
|
+
}
|
|
31318
31321
|
function parseTypeAnnotation() {
|
|
31319
31322
|
return parseOptional(59 /* ColonToken */) ? parseType() : void 0;
|
|
31320
31323
|
}
|
|
@@ -76652,19 +76655,16 @@ ${lanes.join("\n")}
|
|
|
76652
76655
|
}
|
|
76653
76656
|
}
|
|
76654
76657
|
}
|
|
76655
|
-
function
|
|
76658
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
76656
76659
|
const signature = getSingleCallSignature(funcType);
|
|
76657
|
-
if (signature) {
|
|
76658
|
-
|
|
76659
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
76660
|
-
return returnType;
|
|
76661
|
-
}
|
|
76660
|
+
if (signature && !signature.typeParameters) {
|
|
76661
|
+
return getReturnTypeOfSignature(signature);
|
|
76662
76662
|
}
|
|
76663
76663
|
}
|
|
76664
76664
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
76665
76665
|
const funcType = checkExpression(expr.expression);
|
|
76666
76666
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
76667
|
-
const returnType =
|
|
76667
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
76668
76668
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
76669
76669
|
}
|
|
76670
76670
|
function getTypeOfExpression(node) {
|
|
@@ -76709,7 +76709,7 @@ ${lanes.join("\n")}
|
|
|
76709
76709
|
/*requireStringLiteralLikeArgument*/
|
|
76710
76710
|
true
|
|
76711
76711
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76712
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
76712
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
76713
76713
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
76714
76714
|
return getTypeFromTypeNode(expr.type);
|
|
76715
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.20230620`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -20844,7 +20844,7 @@ var Parser;
|
|
|
20844
20844
|
}
|
|
20845
20845
|
const pos = getNodePos();
|
|
20846
20846
|
const type = parseUnionTypeOrHigher();
|
|
20847
|
-
if (!inDisallowConditionalTypesContext() &&
|
|
20847
|
+
if (!inDisallowConditionalTypesContext() && tryParse(parseConditionalTypeExtends)) {
|
|
20848
20848
|
const extendsType = disallowConditionalTypesAnd(parseType);
|
|
20849
20849
|
parseExpected(58 /* QuestionToken */);
|
|
20850
20850
|
const trueType = allowConditionalTypesAnd(parseType);
|
|
@@ -20854,6 +20854,9 @@ var Parser;
|
|
|
20854
20854
|
}
|
|
20855
20855
|
return type;
|
|
20856
20856
|
}
|
|
20857
|
+
function parseConditionalTypeExtends() {
|
|
20858
|
+
return parseOptional(96 /* ExtendsKeyword */) && !(parseOptional(58 /* QuestionToken */) || parseOptional(59 /* ColonToken */));
|
|
20859
|
+
}
|
|
20857
20860
|
function parseTypeAnnotation() {
|
|
20858
20861
|
return parseOptional(59 /* ColonToken */) ? parseType() : void 0;
|
|
20859
20862
|
}
|
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-54688-11",
|
|
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": "93f6572f86164d3d5973c7956b7d43a8e57c4aef"
|
|
119
119
|
}
|