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

x/valibot/src/schemas/index.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@v1.0.0-beta.4/src/schemas/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.