@typescript-deploys/pr-build 5.4.0-pr-56895-10 → 5.4.0-pr-56780-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 +5 -5
- package/lib/tsserver.js +5 -5
- package/lib/typescript.js +5 -5
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -52162,7 +52162,7 @@ function createTypeChecker(host) {
|
|
|
52162
52162
|
if (declaration.dotDotDotToken) {
|
|
52163
52163
|
const baseConstraint = mapType(parentType, (t) => t.flags & 58982400 /* InstantiableNonPrimitive */ ? getBaseConstraintOrType(t) : t);
|
|
52164
52164
|
type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType);
|
|
52165
|
-
} else if (isArrayLikeType(parentType)) {
|
|
52165
|
+
} else if (isArrayLikeType(parentType) && !isErrorType(elementType)) {
|
|
52166
52166
|
const indexType = getNumberLiteralType(index);
|
|
52167
52167
|
const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0);
|
|
52168
52168
|
const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType;
|
|
@@ -53079,7 +53079,7 @@ function createTypeChecker(host) {
|
|
|
53079
53079
|
if (!links.writeType && links.deferralWriteConstituents) {
|
|
53080
53080
|
Debug.assertIsDefined(links.deferralParent);
|
|
53081
53081
|
Debug.assertIsDefined(links.deferralConstituents);
|
|
53082
|
-
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ?
|
|
53082
|
+
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents);
|
|
53083
53083
|
}
|
|
53084
53084
|
return links.writeType;
|
|
53085
53085
|
}
|
|
@@ -55301,7 +55301,7 @@ function createTypeChecker(host) {
|
|
|
55301
55301
|
} else {
|
|
55302
55302
|
result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes);
|
|
55303
55303
|
if (writeTypes) {
|
|
55304
|
-
result.links.writeType = isUnion ?
|
|
55304
|
+
result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes);
|
|
55305
55305
|
}
|
|
55306
55306
|
}
|
|
55307
55307
|
return result;
|
|
@@ -58209,7 +58209,7 @@ function createTypeChecker(host) {
|
|
|
58209
58209
|
}
|
|
58210
58210
|
}
|
|
58211
58211
|
if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) {
|
|
58212
|
-
if (objectType.flags &
|
|
58212
|
+
if (objectType.flags & 1 /* Any */ || objectType.flags & 131072 /* Never */ && !(accessFlags & 32 /* ExpressionPosition */)) {
|
|
58213
58213
|
return objectType;
|
|
58214
58214
|
}
|
|
58215
58215
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
@@ -78733,7 +78733,7 @@ function createTypeChecker(host) {
|
|
|
78733
78733
|
const allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0;
|
|
78734
78734
|
if (inputType === neverType) {
|
|
78735
78735
|
reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables);
|
|
78736
|
-
return
|
|
78736
|
+
return errorType;
|
|
78737
78737
|
}
|
|
78738
78738
|
const uplevelIteration = languageVersion >= 2 /* ES2015 */;
|
|
78739
78739
|
const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;
|
package/lib/tsserver.js
CHANGED
|
@@ -56881,7 +56881,7 @@ function createTypeChecker(host) {
|
|
|
56881
56881
|
if (declaration.dotDotDotToken) {
|
|
56882
56882
|
const baseConstraint = mapType(parentType, (t) => t.flags & 58982400 /* InstantiableNonPrimitive */ ? getBaseConstraintOrType(t) : t);
|
|
56883
56883
|
type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType);
|
|
56884
|
-
} else if (isArrayLikeType(parentType)) {
|
|
56884
|
+
} else if (isArrayLikeType(parentType) && !isErrorType(elementType)) {
|
|
56885
56885
|
const indexType = getNumberLiteralType(index);
|
|
56886
56886
|
const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0);
|
|
56887
56887
|
const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType;
|
|
@@ -57798,7 +57798,7 @@ function createTypeChecker(host) {
|
|
|
57798
57798
|
if (!links.writeType && links.deferralWriteConstituents) {
|
|
57799
57799
|
Debug.assertIsDefined(links.deferralParent);
|
|
57800
57800
|
Debug.assertIsDefined(links.deferralConstituents);
|
|
57801
|
-
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ?
|
|
57801
|
+
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents);
|
|
57802
57802
|
}
|
|
57803
57803
|
return links.writeType;
|
|
57804
57804
|
}
|
|
@@ -60020,7 +60020,7 @@ function createTypeChecker(host) {
|
|
|
60020
60020
|
} else {
|
|
60021
60021
|
result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes);
|
|
60022
60022
|
if (writeTypes) {
|
|
60023
|
-
result.links.writeType = isUnion ?
|
|
60023
|
+
result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes);
|
|
60024
60024
|
}
|
|
60025
60025
|
}
|
|
60026
60026
|
return result;
|
|
@@ -62928,7 +62928,7 @@ function createTypeChecker(host) {
|
|
|
62928
62928
|
}
|
|
62929
62929
|
}
|
|
62930
62930
|
if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) {
|
|
62931
|
-
if (objectType.flags &
|
|
62931
|
+
if (objectType.flags & 1 /* Any */ || objectType.flags & 131072 /* Never */ && !(accessFlags & 32 /* ExpressionPosition */)) {
|
|
62932
62932
|
return objectType;
|
|
62933
62933
|
}
|
|
62934
62934
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
@@ -83452,7 +83452,7 @@ function createTypeChecker(host) {
|
|
|
83452
83452
|
const allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0;
|
|
83453
83453
|
if (inputType === neverType) {
|
|
83454
83454
|
reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables);
|
|
83455
|
-
return
|
|
83455
|
+
return errorType;
|
|
83456
83456
|
}
|
|
83457
83457
|
const uplevelIteration = languageVersion >= 2 /* ES2015 */;
|
|
83458
83458
|
const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;
|
package/lib/typescript.js
CHANGED
|
@@ -54637,7 +54637,7 @@ ${lanes.join("\n")}
|
|
|
54637
54637
|
if (declaration.dotDotDotToken) {
|
|
54638
54638
|
const baseConstraint = mapType(parentType, (t) => t.flags & 58982400 /* InstantiableNonPrimitive */ ? getBaseConstraintOrType(t) : t);
|
|
54639
54639
|
type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType);
|
|
54640
|
-
} else if (isArrayLikeType(parentType)) {
|
|
54640
|
+
} else if (isArrayLikeType(parentType) && !isErrorType(elementType)) {
|
|
54641
54641
|
const indexType = getNumberLiteralType(index);
|
|
54642
54642
|
const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0);
|
|
54643
54643
|
const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType;
|
|
@@ -55554,7 +55554,7 @@ ${lanes.join("\n")}
|
|
|
55554
55554
|
if (!links.writeType && links.deferralWriteConstituents) {
|
|
55555
55555
|
Debug.assertIsDefined(links.deferralParent);
|
|
55556
55556
|
Debug.assertIsDefined(links.deferralConstituents);
|
|
55557
|
-
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ?
|
|
55557
|
+
links.writeType = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents);
|
|
55558
55558
|
}
|
|
55559
55559
|
return links.writeType;
|
|
55560
55560
|
}
|
|
@@ -57776,7 +57776,7 @@ ${lanes.join("\n")}
|
|
|
57776
57776
|
} else {
|
|
57777
57777
|
result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes);
|
|
57778
57778
|
if (writeTypes) {
|
|
57779
|
-
result.links.writeType = isUnion ?
|
|
57779
|
+
result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes);
|
|
57780
57780
|
}
|
|
57781
57781
|
}
|
|
57782
57782
|
return result;
|
|
@@ -60684,7 +60684,7 @@ ${lanes.join("\n")}
|
|
|
60684
60684
|
}
|
|
60685
60685
|
}
|
|
60686
60686
|
if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) {
|
|
60687
|
-
if (objectType.flags &
|
|
60687
|
+
if (objectType.flags & 1 /* Any */ || objectType.flags & 131072 /* Never */ && !(accessFlags & 32 /* ExpressionPosition */)) {
|
|
60688
60688
|
return objectType;
|
|
60689
60689
|
}
|
|
60690
60690
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
@@ -81208,7 +81208,7 @@ ${lanes.join("\n")}
|
|
|
81208
81208
|
const allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0;
|
|
81209
81209
|
if (inputType === neverType) {
|
|
81210
81210
|
reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables);
|
|
81211
|
-
return
|
|
81211
|
+
return errorType;
|
|
81212
81212
|
}
|
|
81213
81213
|
const uplevelIteration = languageVersion >= 2 /* ES2015 */;
|
|
81214
81214
|
const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;
|
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.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-56780-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": "
|
|
117
|
+
"gitHead": "a3e8fb1ca240be269ee36cd7368120195972a734"
|
|
118
118
|
}
|