© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Extracting the type of `S.literal('a','b','c')` and the limitations of `S.Schema.To<..>` - Effect Community
EC
Effect Community
•
3y ago
•
18 replies
staubfuss
Extracting the type of `S.literal('a','b','c')` and the limitations of `S.Schema.To<..>`
How can I extract the type of
S.literal('a','b','c')
S.literal('a','b','c')
?
S.Schema.To<..>
S.Schema.To<..>
does not work
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
Extracting Literal Values from a S.literal Schema
EC
Effect Community / schema
3y ago
Extracting Literal Values from a Schema
EC
Effect Community / schema
3y ago
Extracting `Schema.Literal` from Schema.Struct
EC
Effect Community / schema
2y ago
Refining a Schema with a Type to Create a Literal Schema
EC
Effect Community / schema
7mo ago