@typescript-deploys/pr-build 5.8.0-pr-55267-247 → 5.8.0-pr-61077-3
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 +3 -0
- package/lib/typescript.js +3 -0
- package/package.json +1 -1
package/lib/_tsc.js
CHANGED
|
@@ -62831,6 +62831,9 @@ function createTypeChecker(host) {
|
|
|
62831
62831
|
const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
|
|
62832
62832
|
const checkType = root.checkType;
|
|
62833
62833
|
let distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
62834
|
+
if (distributionType && isNoInferType(distributionType)) {
|
|
62835
|
+
distributionType = distributionType.baseType;
|
|
62836
|
+
}
|
|
62834
62837
|
let narrowingBaseType;
|
|
62835
62838
|
const forNarrowing = distributionType && isNarrowingSubstitutionType(distributionType) && isNarrowableConditionalType(type, mapper);
|
|
62836
62839
|
if (forNarrowing) {
|
package/lib/typescript.js
CHANGED
|
@@ -67441,6 +67441,9 @@ function createTypeChecker(host) {
|
|
|
67441
67441
|
const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
|
|
67442
67442
|
const checkType = root.checkType;
|
|
67443
67443
|
let distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
67444
|
+
if (distributionType && isNoInferType(distributionType)) {
|
|
67445
|
+
distributionType = distributionType.baseType;
|
|
67446
|
+
}
|
|
67444
67447
|
let narrowingBaseType;
|
|
67445
67448
|
const forNarrowing = distributionType && isNarrowingSubstitutionType(distributionType) && isNarrowableConditionalType(type, mapper);
|
|
67446
67449
|
if (forNarrowing) {
|
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.8.0-pr-
|
|
5
|
+
"version": "5.8.0-pr-61077-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|