Effect CommunityEC
Effect Community2y ago
3 replies
petros

Matching on Union Types in TypeScript Without Explicit Tags

If i have a type like this

type MyType = 'option1' | 'option2' 


how can I match on the type without adding _tag explicitly the possible types? Is there an easy way?
Was this page helpful?