@typescript-deploys/pr-build 5.4.0-pr-55842-40 → 5.4.0-pr-57394-2
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 +4 -4
- package/lib/tsserver.js +5 -5
- package/lib/typescript.js +5 -5
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -58408,9 +58408,6 @@ function createTypeChecker(host) {
|
|
|
58408
58408
|
if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) {
|
|
58409
58409
|
return objectType;
|
|
58410
58410
|
}
|
|
58411
|
-
if (indexType === neverType || indexType === implicitNeverType) {
|
|
58412
|
-
return neverType;
|
|
58413
|
-
}
|
|
58414
58411
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
58415
58412
|
if (indexInfo) {
|
|
58416
58413
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
@@ -58434,6 +58431,9 @@ function createTypeChecker(host) {
|
|
|
58434
58431
|
}
|
|
58435
58432
|
return indexInfo.type;
|
|
58436
58433
|
}
|
|
58434
|
+
if (indexType.flags & 131072 /* Never */) {
|
|
58435
|
+
return neverType;
|
|
58436
|
+
}
|
|
58437
58437
|
if (isJSLiteralType(objectType)) {
|
|
58438
58438
|
return anyType;
|
|
58439
58439
|
}
|
|
@@ -58692,7 +58692,7 @@ function createTypeChecker(host) {
|
|
|
58692
58692
|
return wildcardType;
|
|
58693
58693
|
}
|
|
58694
58694
|
objectType = getReducedType(objectType);
|
|
58695
|
-
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) &&
|
|
58695
|
+
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {
|
|
58696
58696
|
indexType = stringType;
|
|
58697
58697
|
}
|
|
58698
58698
|
if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */)
|
package/lib/tsserver.js
CHANGED
|
@@ -63152,9 +63152,6 @@ function createTypeChecker(host) {
|
|
|
63152
63152
|
if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) {
|
|
63153
63153
|
return objectType;
|
|
63154
63154
|
}
|
|
63155
|
-
if (indexType === neverType || indexType === implicitNeverType) {
|
|
63156
|
-
return neverType;
|
|
63157
|
-
}
|
|
63158
63155
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
63159
63156
|
if (indexInfo) {
|
|
63160
63157
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
@@ -63178,6 +63175,9 @@ function createTypeChecker(host) {
|
|
|
63178
63175
|
}
|
|
63179
63176
|
return indexInfo.type;
|
|
63180
63177
|
}
|
|
63178
|
+
if (indexType.flags & 131072 /* Never */) {
|
|
63179
|
+
return neverType;
|
|
63180
|
+
}
|
|
63181
63181
|
if (isJSLiteralType(objectType)) {
|
|
63182
63182
|
return anyType;
|
|
63183
63183
|
}
|
|
@@ -63436,7 +63436,7 @@ function createTypeChecker(host) {
|
|
|
63436
63436
|
return wildcardType;
|
|
63437
63437
|
}
|
|
63438
63438
|
objectType = getReducedType(objectType);
|
|
63439
|
-
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) &&
|
|
63439
|
+
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {
|
|
63440
63440
|
indexType = stringType;
|
|
63441
63441
|
}
|
|
63442
63442
|
if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */)
|
|
@@ -162293,7 +162293,7 @@ function isClassMemberCompletionKeyword(kind) {
|
|
|
162293
162293
|
}
|
|
162294
162294
|
}
|
|
162295
162295
|
function isFunctionLikeBodyKeyword(kind) {
|
|
162296
|
-
return kind === 134 /* AsyncKeyword */ || kind === 135 /* AwaitKeyword */ || kind === 130 /* AsKeyword */ || kind === 152 /* SatisfiesKeyword */ || kind === 156 /* TypeKeyword */ || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
|
|
162296
|
+
return kind === 134 /* AsyncKeyword */ || kind === 135 /* AwaitKeyword */ || kind === 160 /* UsingKeyword */ || kind === 130 /* AsKeyword */ || kind === 152 /* SatisfiesKeyword */ || kind === 156 /* TypeKeyword */ || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
|
|
162297
162297
|
}
|
|
162298
162298
|
function keywordForNode(node) {
|
|
162299
162299
|
return isIdentifier(node) ? identifierToKeywordKind(node) ?? 0 /* Unknown */ : node.kind;
|
package/lib/typescript.js
CHANGED
|
@@ -60907,9 +60907,6 @@ ${lanes.join("\n")}
|
|
|
60907
60907
|
if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) {
|
|
60908
60908
|
return objectType;
|
|
60909
60909
|
}
|
|
60910
|
-
if (indexType === neverType || indexType === implicitNeverType) {
|
|
60911
|
-
return neverType;
|
|
60912
|
-
}
|
|
60913
60910
|
const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);
|
|
60914
60911
|
if (indexInfo) {
|
|
60915
60912
|
if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {
|
|
@@ -60933,6 +60930,9 @@ ${lanes.join("\n")}
|
|
|
60933
60930
|
}
|
|
60934
60931
|
return indexInfo.type;
|
|
60935
60932
|
}
|
|
60933
|
+
if (indexType.flags & 131072 /* Never */) {
|
|
60934
|
+
return neverType;
|
|
60935
|
+
}
|
|
60936
60936
|
if (isJSLiteralType(objectType)) {
|
|
60937
60937
|
return anyType;
|
|
60938
60938
|
}
|
|
@@ -61191,7 +61191,7 @@ ${lanes.join("\n")}
|
|
|
61191
61191
|
return wildcardType;
|
|
61192
61192
|
}
|
|
61193
61193
|
objectType = getReducedType(objectType);
|
|
61194
|
-
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) &&
|
|
61194
|
+
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {
|
|
61195
61195
|
indexType = stringType;
|
|
61196
61196
|
}
|
|
61197
61197
|
if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */)
|
|
@@ -161494,7 +161494,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161494
161494
|
}
|
|
161495
161495
|
}
|
|
161496
161496
|
function isFunctionLikeBodyKeyword(kind) {
|
|
161497
|
-
return kind === 134 /* AsyncKeyword */ || kind === 135 /* AwaitKeyword */ || kind === 130 /* AsKeyword */ || kind === 152 /* SatisfiesKeyword */ || kind === 156 /* TypeKeyword */ || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
|
|
161497
|
+
return kind === 134 /* AsyncKeyword */ || kind === 135 /* AwaitKeyword */ || kind === 160 /* UsingKeyword */ || kind === 130 /* AsKeyword */ || kind === 152 /* SatisfiesKeyword */ || kind === 156 /* TypeKeyword */ || !isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);
|
|
161498
161498
|
}
|
|
161499
161499
|
function keywordForNode(node) {
|
|
161500
161500
|
return isIdentifier(node) ? identifierToKeywordKind(node) ?? 0 /* Unknown */ : node.kind;
|
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-57394-2",
|
|
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": "ec97d1f0fe2ad4412ae48e3ac505991132949036"
|
|
118
118
|
}
|