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

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface BooleanSchema
implements BaseSchema<boolean, boolean, BooleanIssue>
import { type BooleanSchema } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/boolean/boolean.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.