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

x/valibot/mod.ts>PicklistSchema

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