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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function picklistAsync
import { picklistAsync } from "https://deno.land/x/valibot@v0.24.0/src/schemas/picklist/index.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.