© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Combining branded schemas while preserving brands - Effect Community
EC
Effect Community
•
4mo ago
•
1 reply
Andrei
Combining branded schemas while preserving brands
effect
schema
✅
Solved!
How can I combine these two schemas into a
NonEmptyHexStringSchema
NonEmptyHexStringSchema
while preserving both brands
? Every attempt I
've tried has lost at least one of the brands
.
The reason I want to preserve the brands is because I want a
NonEmptyHexString
NonEmptyHexString
to be able to be used anywhere a
NonEmptyString
NonEmptyString
or a
HexString
HexString
can be used
.
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Interrogating schemas
EC
Effect Community / help-forum
12mo ago
Branded types "fail origin"
EC
Effect Community / help-forum
3y ago
Branded strings in vitest
EC
Effect Community / help-forum
3y ago
Disallow mixing of branded types
EC
Effect Community / help-forum
13mo ago