Skip to main content
Module

x/valibot/mod.ts>picklist

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

Creates a picklist schema.

Type Parameters

TOption extends string
TOptions extends PicklistOptions<TOption>

Parameters

options: TOptions

The picklist value.

optional
message: ErrorMessage = [UNSUPPORTED]

The error message.

Returns

A picklist schema.