Skip to main content
Module

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

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