We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee2f20 commit 891aa24Copy full SHA for 891aa24
src/compiler/checker.ts
@@ -25345,7 +25345,7 @@ namespace ts {
25345
someType(type, isGenericTypeWithUnionConstraint) ||
25346
((type.flags & TypeFlags.Instantiable) && contextualType && isEmptyObjectType(contextualType))
25347
);
25348
- return substituteConstraints ? mapType(type, t => t.flags & TypeFlags.Instantiable ? getBaseConstraintOrType(t) : t) : type;
+ return substituteConstraints ? mapType(type, t => t.flags & TypeFlags.Instantiable ? getBaseConstraintOfType(t) || unknownType : t) : type;
25349
}
25350
25351
function isExportOrExportExpression(location: Node) {
0 commit comments