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
{{ message }}
Repository navigation
Mapped types key remapping as K is converting array/tuple into objectΒ #52264
Notes:
Of course, it's a simplified example. In my actual use case, I had a conditional type like as T extends unknown[] ? K : .... The workaround was to move the conditional type out of the mapped type and write the mapped type twice
changed the title [-]Mapped types key remappin `as K` is convertin array into object[/-][+]Mapped types key remapping `as K` is converting array/tuple into object[/+]on Jan 17, 2023
Activity
[-]Mapped types key remappin `as K` is convertin array into object[/-][+]Mapped types key remapping `as K` is converting array/tuple into object[/+]jcalz commentedon Jan 17, 2023
Duplicate of #40586
typescript-bot commentedon Feb 5, 2023
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.