import { picklist } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/index.ts";
Creates a picklist schema.
Type Parameters
TOptions extends PicklistOptions
Parameters
options: TOptions
The picklist options.
Returns
PicklistSchema<TOptions, undefined>
A picklist schema.
Creates a picklist schema.
Type Parameters
TOptions extends PicklistOptions
TMessage extends ErrorMessage<PicklistIssue> | undefined
Returns
A picklist schema.