Skip to content

Commit cdda5df

Browse files
committed
keyof T is a literal contextual type
1 parent e128add commit cdda5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14870,7 +14870,7 @@ namespace ts {
1487014870
}
1487114871
contextualType = apparentType;
1487214872
}
14873-
return maybeTypeOfKind(contextualType, TypeFlags.Literal);
14873+
return maybeTypeOfKind(contextualType, (TypeFlags.Literal | TypeFlags.Index));
1487414874
}
1487514875
return false;
1487614876
}

0 commit comments

Comments
 (0)