Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/schemas/picklist/picklist.ts>picklist

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function picklist
import { picklist } from "https://deno.land/x/valibot@v0.37.0/src/schemas/picklist/picklist.ts";

Creates a picklist schema.

Parameters

options: TOptions

The picklist options.

Returns

A picklist schema.

Creates a picklist schema.

Type Parameters

TOptions extends PicklistOptions
TMessage extends ErrorMessage<PicklistIssue> | undefined

Parameters

options: TOptions

The picklist options.

message: TMessage

The error message.