We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53809d8 commit aa1c25dCopy full SHA for aa1c25d
src/compiler/checker.ts
@@ -25081,7 +25081,7 @@ namespace ts {
25081
const substituteConstraints = !(checkMode && checkMode & CheckMode.Inferential) &&
25082
someType(type, isGenericTypeWithUnionConstraint) &&
25083
(isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode));
25084
- return substituteConstraints ? mapType(type, t => t.flags & TypeFlags.Instantiable && !isMappedTypeGenericIndexedAccess(t) ? getBaseConstraintOrType(t) : t) : type;
+ return substituteConstraints ? mapType(type, t => t.flags & TypeFlags.Instantiable ? getBaseConstraintOrType(t) : t) : type;
25085
}
25086
25087
function isExportOrExportExpression(location: Node) {
0 commit comments