© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Matching on Union Types in TypeScript Without Explicit Tags - Effect Community
EC
Effect Community
•
3y ago
•
3 replies
petros
Matching on Union Types in TypeScript Without Explicit Tags
If i have a type like this
type MyType = 'option1' | 'option2'
type MyType = 'option1' | 'option2'
how can I match on the type without adding
_tag explicitly the possible types
? Is there an easy way
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Creating a Safe Discriminated Union in TypeScript Without Failing on Unimplemented Types
EC
Effect Community / schema
2y ago
Issue with Creating Union Types in TypeScript
EC
Effect Community / schema
3y ago
Aligning Schema with Explicit Types in Effect Typescript
EC
Effect Community / schema
2mo ago
Improving Error Messages for Union Types in TypeScript
EC
Effect Community / schema
2y ago