Effect CommunityEC
Effect Community3y ago
19 replies
blckbstr!

Getting Union Elements in Effect Schema

What's the preferred way to get the elements of a union? In Zod, their enums have a property called options that provides all the options as a read-only array. What's the pattern for this in Effect Schema?
Was this page helpful?