Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Total TypeScript
(Uncensored)
subscribe
Map over a union type (tip)
https://www.totaltypescript.com/tips/map-over-a-union-type
links
backlinks
Mapping over a union type can feel tricky to conceptualise. But actually, TypeScript does it all for you - using Distributive Conditional Types.