File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -13066,8 +13066,7 @@ namespace ts {
13066
13066
}
13067
13067
// A type S is assignable to keyof T if S is assignable to keyof C, where C is the
13068
13068
// simplified form of T or, if T doesn't simplify, the constraint of T.
13069
- const simplified = getSimplifiedType((<IndexType>target).type, /*writing*/ false);
13070
- const constraint = simplified !== (<IndexType>target).type ? simplified : getConstraintOfType((<IndexType>target).type);
13069
+ const constraint = getSimplifiedTypeOrConstraint((<IndexType>target).type);
13071
13070
if (constraint) {
13072
13071
// We require Ternary.True here such that circular constraints don't cause
13073
13072
// false positives. For example, given 'T extends { [K in keyof T]: string }',
You can’t perform that action at this time.
0 commit comments