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

x/valibot/mod.ts>BooleanSchema

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