You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PickByValue, PickByValueExact and maybe other operators Picking keys union created via "conditional mapping" produce types with "hidden" undefined key when used on type with optional properties. Applying keyof to such types gives ACTUAL_KEYS | undefined.
Description
PickByValue
,PickByValueExact
and maybe other operatorsPick
ing keys union created via "conditional mapping" produce types with "hidden"undefined
key when used on type with optional properties. Applyingkeyof
to such types givesACTUAL_KEYS | undefined
.Details and suggested fix here:
microsoft/TypeScript#34992
Steps to Reproduce
Playground
The text was updated successfully, but these errors were encountered: