DEV Community

Discussion on: Type | Treat 2021 - Day 5

Collapse
cherryblossom000 profile image
cherryblossom000

That's a much nicer way of doing it! For some reason I've only ever thought of using the A in B mapped properties with unions of strings, even when the as thing was released. Thanks for showing a better solution!