Strange keyof behavior with combination of Partial and Record. #28839
Labels
Bug
A bug in TypeScript
Domain: Indexed Access Types
The issue relates to accessing subtypes via index access
Domain: Mapped Types
The issue relates to mapped types
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 3.2.1
Search Terms:
keyof, Record, Partial, ...
But actually, I don't know how to exactly express this problem in the search box...
Code
Expected behavior:
When I used v2.9.2, the code works well.
Actual behavior:
But, when I upgrade to v3.2.1, it fails with compilation error message like this:
Playground Link:
Related Issues:
#18538 maybe
The text was updated successfully, but these errors were encountered: