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

x/valibot/mod.ts>PicklistSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias PicklistSchema
Re-export
import { type PicklistSchema } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Picklist schema type.

Type Parameters

TOptions extends PicklistOptions
optional
TOutput = TOptions[number]
definition: BaseSchema<TOptions[number], TOutput> & { type: "picklist"; options: TOptions; message: ErrorMessage | undefined; }