Unable to use Pick
on union with data-${string} index signature
#58898
Labels
Domain: Big Unions
The root cause is ultimately that big unions interact poorly with complex structures
Needs Investigation
This issue needs a team member to investigate its status.
Uh oh!
There was an error while loading. Please reload this page.
Based on microsoft/fluentui#27302, and more specifically, this comment microsoft/fluentui#27302 (comment)
Playground Link
Simplified
The workaround I am advising is to use a different helper type:
DistPick
, which first distributes over each type in the union, and then applies aPick
if possible. (Playground Link):or even this (maybe less efficient?) version:
The text was updated successfully, but these errors were encountered: