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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface PicklistSchema
implements BaseSchema<TOptions[number], TOptions[number], PicklistIssue>
import { type PicklistSchema } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/index.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.