© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Using Literal and String in Schema - Effect Community
EC
Effect Community
•
10mo ago
Denish
Using Literal and String in Schema
Hi
, which schema to use when i want Literal as well as string
, something like
reason: 'unknown' | 'not_authenticated' | (string & {})
reason: 'unknown' | 'not_authenticated' | (string & {})
so i will have typed literals but any value can be defined
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
Difference between SchemaParam and SchemaPathParam
EC
Effect Community / 🚀-beginners
2y ago
Using `Schema` for `toFixed` and String Appending
EC
Effect Community / 🚀-beginners
12mo ago
Type Error with Default Value in Schema Using Literal Strings
EC
Effect Community / 🚀-beginners
8mo ago
Accepting Schema.Literal as a function parameter in Typescript
EC
Effect Community / 🚀-beginners
17mo ago