Skip to content
Discussion options

You must be logged in to vote

Thanks for the info. We should probably update value to support boolean as well. For now, literal is the way to go. It keeps the bundle size to a minimum and does a straight check for true.

const Schema = literal(true, 'Please accept our terms.');

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@rikhall1515
Comment options

Answer selected by fabian-hiller
Comment options

You must be logged in to vote
2 replies
@fabian-hiller
Comment options

@adrianrudnik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants