typescript 5.2.0-dev.20230726 → 5.2.0-dev.20230727
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 +2 -22
- package/lib/tsserver.js +2 -22
- package/lib/tsserverlibrary.js +2 -22
- package/lib/typescript.js +2 -22
- 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-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230727`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -55015,7 +55015,7 @@ function createTypeChecker(host) {
|
|
|
55015
55015
|
return getReturnTypeOfTypeTag(declaration);
|
|
55016
55016
|
}
|
|
55017
55017
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
55018
|
-
return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
55018
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
55019
55019
|
}
|
|
55020
55020
|
function getRestTypeOfSignature(signature) {
|
|
55021
55021
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -61159,26 +61159,6 @@ function createTypeChecker(host) {
|
|
|
61159
61159
|
)) {
|
|
61160
61160
|
return result2;
|
|
61161
61161
|
}
|
|
61162
|
-
if (sourceFlags & 8388608 /* IndexedAccess */) {
|
|
61163
|
-
const indexType = source2.indexType;
|
|
61164
|
-
if (indexType.flags & 4194304 /* Index */) {
|
|
61165
|
-
const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type);
|
|
61166
|
-
const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType;
|
|
61167
|
-
const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint);
|
|
61168
|
-
if (result2 = isRelatedTo(
|
|
61169
|
-
constraint2,
|
|
61170
|
-
target2,
|
|
61171
|
-
1 /* Source */,
|
|
61172
|
-
/*reportErrors*/
|
|
61173
|
-
false,
|
|
61174
|
-
/*headMessage*/
|
|
61175
|
-
void 0,
|
|
61176
|
-
intersectionState
|
|
61177
|
-
)) {
|
|
61178
|
-
return result2;
|
|
61179
|
-
}
|
|
61180
|
-
}
|
|
61181
|
-
}
|
|
61182
61162
|
if (isMappedTypeGenericIndexedAccess(source2)) {
|
|
61183
61163
|
const indexConstraint = getConstraintOfType(source2.indexType);
|
|
61184
61164
|
if (indexConstraint) {
|
package/lib/tsserver.js
CHANGED
|
@@ -2329,7 +2329,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2329
2329
|
|
|
2330
2330
|
// src/compiler/corePublic.ts
|
|
2331
2331
|
var versionMajorMinor = "5.2";
|
|
2332
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2332
|
+
var version = `${versionMajorMinor}.0-dev.20230727`;
|
|
2333
2333
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2334
2334
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2335
2335
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -59724,7 +59724,7 @@ function createTypeChecker(host) {
|
|
|
59724
59724
|
return getReturnTypeOfTypeTag(declaration);
|
|
59725
59725
|
}
|
|
59726
59726
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
59727
|
-
return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
59727
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
59728
59728
|
}
|
|
59729
59729
|
function getRestTypeOfSignature(signature) {
|
|
59730
59730
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -65868,26 +65868,6 @@ function createTypeChecker(host) {
|
|
|
65868
65868
|
)) {
|
|
65869
65869
|
return result2;
|
|
65870
65870
|
}
|
|
65871
|
-
if (sourceFlags & 8388608 /* IndexedAccess */) {
|
|
65872
|
-
const indexType = source2.indexType;
|
|
65873
|
-
if (indexType.flags & 4194304 /* Index */) {
|
|
65874
|
-
const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type);
|
|
65875
|
-
const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType;
|
|
65876
|
-
const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint);
|
|
65877
|
-
if (result2 = isRelatedTo(
|
|
65878
|
-
constraint2,
|
|
65879
|
-
target2,
|
|
65880
|
-
1 /* Source */,
|
|
65881
|
-
/*reportErrors*/
|
|
65882
|
-
false,
|
|
65883
|
-
/*headMessage*/
|
|
65884
|
-
void 0,
|
|
65885
|
-
intersectionState
|
|
65886
|
-
)) {
|
|
65887
|
-
return result2;
|
|
65888
|
-
}
|
|
65889
|
-
}
|
|
65890
|
-
}
|
|
65891
65871
|
if (isMappedTypeGenericIndexedAccess(source2)) {
|
|
65892
65872
|
const indexConstraint = getConstraintOfType(source2.indexType);
|
|
65893
65873
|
if (indexConstraint) {
|
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-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230727`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -57489,7 +57489,7 @@ ${lanes.join("\n")}
|
|
|
57489
57489
|
return getReturnTypeOfTypeTag(declaration);
|
|
57490
57490
|
}
|
|
57491
57491
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
57492
|
-
return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
57492
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
57493
57493
|
}
|
|
57494
57494
|
function getRestTypeOfSignature(signature) {
|
|
57495
57495
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -63633,26 +63633,6 @@ ${lanes.join("\n")}
|
|
|
63633
63633
|
)) {
|
|
63634
63634
|
return result2;
|
|
63635
63635
|
}
|
|
63636
|
-
if (sourceFlags & 8388608 /* IndexedAccess */) {
|
|
63637
|
-
const indexType = source2.indexType;
|
|
63638
|
-
if (indexType.flags & 4194304 /* Index */) {
|
|
63639
|
-
const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type);
|
|
63640
|
-
const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType;
|
|
63641
|
-
const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint);
|
|
63642
|
-
if (result2 = isRelatedTo(
|
|
63643
|
-
constraint2,
|
|
63644
|
-
target2,
|
|
63645
|
-
1 /* Source */,
|
|
63646
|
-
/*reportErrors*/
|
|
63647
|
-
false,
|
|
63648
|
-
/*headMessage*/
|
|
63649
|
-
void 0,
|
|
63650
|
-
intersectionState
|
|
63651
|
-
)) {
|
|
63652
|
-
return result2;
|
|
63653
|
-
}
|
|
63654
|
-
}
|
|
63655
|
-
}
|
|
63656
63636
|
if (isMappedTypeGenericIndexedAccess(source2)) {
|
|
63657
63637
|
const indexConstraint = getConstraintOfType(source2.indexType);
|
|
63658
63638
|
if (indexConstraint) {
|
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-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230727`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -57489,7 +57489,7 @@ ${lanes.join("\n")}
|
|
|
57489
57489
|
return getReturnTypeOfTypeTag(declaration);
|
|
57490
57490
|
}
|
|
57491
57491
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
57492
|
-
return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
57492
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;
|
|
57493
57493
|
}
|
|
57494
57494
|
function getRestTypeOfSignature(signature) {
|
|
57495
57495
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -63633,26 +63633,6 @@ ${lanes.join("\n")}
|
|
|
63633
63633
|
)) {
|
|
63634
63634
|
return result2;
|
|
63635
63635
|
}
|
|
63636
|
-
if (sourceFlags & 8388608 /* IndexedAccess */) {
|
|
63637
|
-
const indexType = source2.indexType;
|
|
63638
|
-
if (indexType.flags & 4194304 /* Index */) {
|
|
63639
|
-
const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type);
|
|
63640
|
-
const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType;
|
|
63641
|
-
const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint);
|
|
63642
|
-
if (result2 = isRelatedTo(
|
|
63643
|
-
constraint2,
|
|
63644
|
-
target2,
|
|
63645
|
-
1 /* Source */,
|
|
63646
|
-
/*reportErrors*/
|
|
63647
|
-
false,
|
|
63648
|
-
/*headMessage*/
|
|
63649
|
-
void 0,
|
|
63650
|
-
intersectionState
|
|
63651
|
-
)) {
|
|
63652
|
-
return result2;
|
|
63653
|
-
}
|
|
63654
|
-
}
|
|
63655
|
-
}
|
|
63656
63636
|
if (isMappedTypeGenericIndexedAccess(source2)) {
|
|
63657
63637
|
const indexConstraint = getConstraintOfType(source2.indexType);
|
|
63658
63638
|
if (indexConstraint) {
|
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-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230727`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.2.0-dev.
|
|
5
|
+
"version": "5.2.0-dev.20230727",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "c69f4476af93f9e3b3159c3fbcc5d629cda3efd8"
|
|
117
117
|
}
|