Mapping Literal Values to Meaningful Names in Effect Typescript
what's the best way to give
Schema.Literal(0, 1, 2, 3, 4, 5)
Schema.Literal(0, 1, 2, 3, 4, 5)
meaning? as in 0 = Apple, 1 = Banana. I considered using an Enum like this: https://effect.website/play/#15af2bbd9bd8 However Match does not seem to work well with Enums as it thinks the checks are not exhaustive, when they are.