DEV Community

Discussion on: Type | Treat 2021 - Day 5

Collapse
 
cherryblossom000 profile image
cherryblossom000

There’s also a typo in step 4 of the intermediate problem (‘soley’ instead of ‘solely’).

Collapse
 
orta profile image
Orta

thanks, fixed

Collapse
 
properko profile image
Proper

I think you don't need the Extract for the intermediate challenge.

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!