@typescript-deploys/pr-build 6.0.0-pr-55222-71 → 6.0.0-pr-62825-9
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 -7
- package/lib/typescript.js +2 -7
- package/package.json +1 -1
package/lib/_tsc.js
CHANGED
|
@@ -61876,7 +61876,7 @@ function createTypeChecker(host) {
|
|
|
61876
61876
|
}
|
|
61877
61877
|
function getIndexType(type, indexFlags = 0 /* None */) {
|
|
61878
61878
|
type = getReducedType(type);
|
|
61879
|
-
return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ?
|
|
61879
|
+
return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType || type === silentNeverType ? type : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? stringNumberSymbolType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === 0 /* None */);
|
|
61880
61880
|
}
|
|
61881
61881
|
function getExtractStringType(type) {
|
|
61882
61882
|
const extractTypeAlias = getGlobalExtractSymbol();
|
|
@@ -65676,11 +65676,6 @@ function createTypeChecker(host) {
|
|
|
65676
65676
|
result2 = structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState);
|
|
65677
65677
|
(_c = tracing) == null ? void 0 : _c.pop();
|
|
65678
65678
|
}
|
|
65679
|
-
if (entry !== void 0) {
|
|
65680
|
-
const entrySucceeded = !!(entry & 1 /* Succeeded */);
|
|
65681
|
-
const resultSucceeded = result2 !== 0 /* False */;
|
|
65682
|
-
Debug.assertEqual(entrySucceeded, resultSucceeded, "Cached relationship does not match recalculated result");
|
|
65683
|
-
}
|
|
65684
65679
|
if (outofbandVarianceMarkerHandler) {
|
|
65685
65680
|
outofbandVarianceMarkerHandler = originalHandler;
|
|
65686
65681
|
}
|
|
@@ -66353,7 +66348,7 @@ function createTypeChecker(host) {
|
|
|
66353
66348
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
66354
66349
|
varianceCheckFailed = !allowStructuralFallback;
|
|
66355
66350
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
66356
|
-
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
66351
|
+
if (varianceCheckFailed && !(reportErrors2 && some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */))) {
|
|
66357
66352
|
return 0 /* False */;
|
|
66358
66353
|
}
|
|
66359
66354
|
originalErrorInfo = errorInfo;
|
package/lib/typescript.js
CHANGED
|
@@ -66504,7 +66504,7 @@ function createTypeChecker(host) {
|
|
|
66504
66504
|
}
|
|
66505
66505
|
function getIndexType(type, indexFlags = 0 /* None */) {
|
|
66506
66506
|
type = getReducedType(type);
|
|
66507
|
-
return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ?
|
|
66507
|
+
return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType || type === silentNeverType ? type : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? stringNumberSymbolType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === 0 /* None */);
|
|
66508
66508
|
}
|
|
66509
66509
|
function getExtractStringType(type) {
|
|
66510
66510
|
const extractTypeAlias = getGlobalExtractSymbol();
|
|
@@ -70304,11 +70304,6 @@ function createTypeChecker(host) {
|
|
|
70304
70304
|
result2 = structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState);
|
|
70305
70305
|
(_c = tracing) == null ? void 0 : _c.pop();
|
|
70306
70306
|
}
|
|
70307
|
-
if (entry !== void 0) {
|
|
70308
|
-
const entrySucceeded = !!(entry & 1 /* Succeeded */);
|
|
70309
|
-
const resultSucceeded = result2 !== 0 /* False */;
|
|
70310
|
-
Debug.assertEqual(entrySucceeded, resultSucceeded, "Cached relationship does not match recalculated result");
|
|
70311
|
-
}
|
|
70312
70307
|
if (outofbandVarianceMarkerHandler) {
|
|
70313
70308
|
outofbandVarianceMarkerHandler = originalHandler;
|
|
70314
70309
|
}
|
|
@@ -70981,7 +70976,7 @@ function createTypeChecker(host) {
|
|
|
70981
70976
|
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
|
70982
70977
|
varianceCheckFailed = !allowStructuralFallback;
|
|
70983
70978
|
if (variances !== emptyArray && !allowStructuralFallback) {
|
|
70984
|
-
if (varianceCheckFailed && !some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */)) {
|
|
70979
|
+
if (varianceCheckFailed && !(reportErrors2 && some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */))) {
|
|
70985
70980
|
return 0 /* False */;
|
|
70986
70981
|
}
|
|
70987
70982
|
originalErrorInfo = errorInfo;
|
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": "6.0.0-pr-
|
|
5
|
+
"version": "6.0.0-pr-62825-9",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|