© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Single-Value Enum Issue with `S.Union(S.Literal("foo"))` - Effect Community
EC
Effect Community
•
2y ago
•
16 replies
Jonathan Clem
Single-Value Enum Issue with `S.Union(S.Literal("foo"))`
One other thing I ran into
:
S.Union(S.Literal("foo"))
S.Union(S.Literal("foo"))
always makes it a const
—in my case
, I really want a single
-value enum
, which is what I expected
.
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
Comparison of enumeration methods: `S.enum` vs `S.literal`
EC
Effect Community / schema
3y ago
Matching Discriminated Union with String Literal Schema
EC
Effect Community / schema
3y ago
Extracting Literal Values from a S.literal Schema
EC
Effect Community / schema
3y ago
Issue with Template Literal Example in Documentation
EC
Effect Community / schema
3y ago