Skip to main content
Module

x/valibot/mod.ts>picklistAsync

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

Creates an async picklist schema.

Type Parameters

TOption extends string
TOptions extends PicklistOptions<TOption>

Parameters

options: TOptions

The picklist options.

optional
message: ErrorMessage = [UNSUPPORTED]

The error message.

Returns

An async picklist schema.