mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
keyof T is a literal contextual type
This commit is contained in:
parent
e128add54e
commit
cdda5dfd61
@ -14870,7 +14870,7 @@ namespace ts {
|
||||
}
|
||||
contextualType = apparentType;
|
||||
}
|
||||
return maybeTypeOfKind(contextualType, TypeFlags.Literal);
|
||||
return maybeTypeOfKind(contextualType, (TypeFlags.Literal | TypeFlags.Index));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user