import * as S from 'sury'
const schema = S.optional(S.union(['a', 'b', 'c']), 'a')
console.log(S.parseOrThrow(undefined, schema))
Works on 10.0.4, throws on 11.0.0-alpha.4
Which is ok if this is the new behavior, but it doesn't throw for other types such as S.optional(S.number)
Works on 10.0.4, throws on 11.0.0-alpha.4
Which is ok if this is the new behavior, but it doesn't throw for other types such as
S.optional(S.number)