Inconsistent behaivor between Pick<T,K> and [P in K]: T[K] #28414
Labels
Domain: Conditional Types
The issue relates to conditional types
Domain: Mapped Types
The issue relates to mapped types
Needs Investigation
This issue needs a team member to investigate its status.
TypeScript Version: 3.2.0-dev.20181107
Search Terms:
Pick Inconsistent readonly optional
Code
Expected behavior:
Test1
should be equal toTest
, as it is just an inline version of itActual behavior:
Test1
removed any optional or readonly on properties, whileTest
doesn't.Playground Link:
Playground
Related Issues:
#14295
The text was updated successfully, but these errors were encountered: