Matching Discriminated Union with String Literal Schema
I'm trying to match over a discriminated union, where the discriminator is a string literal defined with
Here
Is this the expected behavior? Wondering if I have package version problem
Schema, but when the schema defines a union of literals (either via S.literal('first', 'second') or S.union(S.literal('first'), S.literal('second')), the type in the match becomes never. Example:Here
x is of type never, unless I get rid of the second argument to S.literal.Is this the expected behavior? Wondering if I have package version problem
