-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels