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

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

The modular and type safe schema library for validating structural data 🤖
Latest
interface PicklistSchema
implements BaseSchema<TOptions[number], TOptions[number], PicklistIssue>
import { type PicklistSchema } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/picklist/picklist.ts";

Picklist schema type.

Type Parameters

TOptions extends PicklistOptions
TMessage extends ErrorMessage<PicklistIssue> | undefined

Properties

readonly
type: "picklist"

The schema type.

readonly
reference: picklist

The schema reference.

readonly
options: TOptions

The picklist options.

readonly
message: TMessage

The error message.