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 6851268 commit fa407ceCopy full SHA for fa407ce
src/compiler/checker.ts
@@ -7234,8 +7234,6 @@ namespace ts {
7234
// Return the lower bound of the key type in a mapped type. Intuitively, the lower
7235
// bound includes those keys that are known to always be present, for example because
7236
// because of constraints on type parameters (e.g. 'keyof T' for a constrained T).
7237
- // The isIndexType flag indicates that the type is the index type of an indexed
7238
- // access that is the target of an assignment.
7239
function getLowerBoundOfKeyType(type: Type): Type {
7240
if (type.flags & (TypeFlags.Any | TypeFlags.Primitive)) {
7241
return type;
0 commit comments