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

x/valibot/src/schemas/boolean/index.ts>BooleanSchema

The modular and type safe schema library for validating structural data 🤖
Latest
interface BooleanSchema
implements BaseSchema<boolean, boolean, BooleanIssue>
import { type BooleanSchema } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/boolean/index.ts";

Boolean schema type.

Type Parameters

TMessage extends ErrorMessage<BooleanIssue> | undefined

Properties

readonly
type: "boolean"

The schema type.

readonly
reference: boolean

The schema reference.

readonly
expects: "boolean"

The expected property.

readonly
message: TMessage

The error message.