Matching on Union Types in TypeScript Without Explicit Tags
If i have a type like this
how can I match on the type without adding _tag explicitly the possible types? Is there an easy way?
how can I match on the type without adding _tag explicitly the possible types? Is there an easy way?
