import { picklist } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/picklist/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.