© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Using S.Class and discriminated unions together to add methods - Effect Community
EC
Effect Community
•
3y ago
•
4 replies
Phrack
Using S.Class and discriminated unions together to add methods
Is there a way to do discriminated unions with S
.Class
? Like if I wanted to add methods to the Circle
/Square DiscriminatedShape example in the README
.
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
Schema's Approach to Discriminated Unions Explained
EC
Effect Community / schema
2y ago
Matching Discriminated Unions with Schema
EC
Effect Community / schema
3y ago
Creating Conditional Configurations with Discriminated Unions
EC
Effect Community / schema
3mo ago
Handling Discriminated Unions for Type Narrowing in Typescript
EC
Effect Community / schema
15mo ago