Effect CommunityEC
Effect Community3y ago
4 replies
pigoz

Alternative to zod's `z.enum` for common use case

Is there an equivalent to zod's z.enum(['apartment', 'house']) that doesn't make want to rip out my eyeballs? S.union(S.literal('apartment'), S.literal('house')) seems overly verbose for such a common use case
Was this page helpful?