Skip to content

How can I allow all literal types? #469

Answered by fabian-hiller
nandorojo asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend picklist. Check it out in our playground.

import * as v from 'valibot';

const Vendor = v.picklist(['google', 's3']);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabian-hiller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants