@typescript-deploys/pr-build 5.1.0-pr-53729-10 → 5.1.0-pr-53758-6
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 +1 -1
- package/lib/tsserver.js +3 -5
- package/lib/tsserverlibrary.js +3 -5
- package/lib/typescript.js +3 -5
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -58189,7 +58189,7 @@ function createTypeChecker(host) {
|
|
|
58189
58189
|
if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
58190
58190
|
return newBaseType;
|
|
58191
58191
|
}
|
|
58192
|
-
return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
58192
|
+
return newBaseType.flags & 8650752 /* TypeVariable */ || newConstraint.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
58193
58193
|
}
|
|
58194
58194
|
return type;
|
|
58195
58195
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -62839,7 +62839,7 @@ function createTypeChecker(host) {
|
|
|
62839
62839
|
if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
62840
62840
|
return newBaseType;
|
|
62841
62841
|
}
|
|
62842
|
-
return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
62842
|
+
return newBaseType.flags & 8650752 /* TypeVariable */ || newConstraint.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
62843
62843
|
}
|
|
62844
62844
|
return type;
|
|
62845
62845
|
}
|
|
@@ -156270,7 +156270,6 @@ function getReferenceAtPosition(sourceFile, position, program) {
|
|
|
156270
156270
|
return void 0;
|
|
156271
156271
|
}
|
|
156272
156272
|
function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {
|
|
156273
|
-
var _a2;
|
|
156274
156273
|
const node = getTouchingPropertyName(sourceFile, position);
|
|
156275
156274
|
if (node === sourceFile) {
|
|
156276
156275
|
return void 0;
|
|
@@ -156295,9 +156294,8 @@ function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {
|
|
|
156295
156294
|
const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
|
|
156296
156295
|
const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);
|
|
156297
156296
|
const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution);
|
|
156298
|
-
const
|
|
156299
|
-
|
|
156300
|
-
return typeDefinitions.length ? [...singleTypeArgumentDefinition, ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
156297
|
+
const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution);
|
|
156298
|
+
return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
156301
156299
|
}
|
|
156302
156300
|
function definitionFromType(type, checker, node, failedAliasResolution) {
|
|
156303
156301
|
return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution));
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -60640,7 +60640,7 @@ ${lanes.join("\n")}
|
|
|
60640
60640
|
if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
60641
60641
|
return newBaseType;
|
|
60642
60642
|
}
|
|
60643
|
-
return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
60643
|
+
return newBaseType.flags & 8650752 /* TypeVariable */ || newConstraint.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
60644
60644
|
}
|
|
60645
60645
|
return type;
|
|
60646
60646
|
}
|
|
@@ -155422,7 +155422,6 @@ ${lanes.join("\n")}
|
|
|
155422
155422
|
return void 0;
|
|
155423
155423
|
}
|
|
155424
155424
|
function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {
|
|
155425
|
-
var _a2;
|
|
155426
155425
|
const node = getTouchingPropertyName(sourceFile, position);
|
|
155427
155426
|
if (node === sourceFile) {
|
|
155428
155427
|
return void 0;
|
|
@@ -155447,9 +155446,8 @@ ${lanes.join("\n")}
|
|
|
155447
155446
|
const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
|
|
155448
155447
|
const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);
|
|
155449
155448
|
const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution);
|
|
155450
|
-
const
|
|
155451
|
-
|
|
155452
|
-
return typeDefinitions.length ? [...singleTypeArgumentDefinition, ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
155449
|
+
const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution);
|
|
155450
|
+
return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
155453
155451
|
}
|
|
155454
155452
|
function definitionFromType(type, checker, node, failedAliasResolution) {
|
|
155455
155453
|
return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution));
|
package/lib/typescript.js
CHANGED
|
@@ -60640,7 +60640,7 @@ ${lanes.join("\n")}
|
|
|
60640
60640
|
if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) {
|
|
60641
60641
|
return newBaseType;
|
|
60642
60642
|
}
|
|
60643
|
-
return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
60643
|
+
return newBaseType.flags & 8650752 /* TypeVariable */ || newConstraint.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]);
|
|
60644
60644
|
}
|
|
60645
60645
|
return type;
|
|
60646
60646
|
}
|
|
@@ -155436,7 +155436,6 @@ ${lanes.join("\n")}
|
|
|
155436
155436
|
return void 0;
|
|
155437
155437
|
}
|
|
155438
155438
|
function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {
|
|
155439
|
-
var _a2;
|
|
155440
155439
|
const node = getTouchingPropertyName(sourceFile, position);
|
|
155441
155440
|
if (node === sourceFile) {
|
|
155442
155441
|
return void 0;
|
|
@@ -155461,9 +155460,8 @@ ${lanes.join("\n")}
|
|
|
155461
155460
|
const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
|
|
155462
155461
|
const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);
|
|
155463
155462
|
const fromReturnType = returnType && definitionFromType(returnType, typeChecker, node, failedAliasResolution);
|
|
155464
|
-
const
|
|
155465
|
-
|
|
155466
|
-
return typeDefinitions.length ? [...singleTypeArgumentDefinition, ...typeDefinitions] : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
155463
|
+
const typeDefinitions = fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node, failedAliasResolution);
|
|
155464
|
+
return typeDefinitions.length ? typeDefinitions : !(symbol.flags & 111551 /* Value */) && symbol.flags & 788968 /* Type */ ? getDefinitionFromSymbol(typeChecker, skipAlias(symbol, typeChecker), node, failedAliasResolution) : void 0;
|
|
155467
155465
|
}
|
|
155468
155466
|
function definitionFromType(type, checker, node, failedAliasResolution) {
|
|
155469
155467
|
return flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], (t) => t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution));
|
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.1.0-pr-
|
|
5
|
+
"version": "5.1.0-pr-53758-6",
|
|
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": "14.21.1",
|
|
115
115
|
"npm": "8.19.3"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "f416421fb6211503675dd59bcf68b6ea2703b7e0"
|
|
118
118
|
}
|