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 🤖
Extremely Popular
Go to Latest
interface BooleanSchema
implements BaseSchema<boolean, TOutput>
import { type BooleanSchema } from "https://deno.land/x/valibot@v0.30.0/src/schemas/boolean/boolean.ts";

Boolean schema type.

Type Parameters

optional
TOutput = boolean

Properties

type: "boolean"

The schema type.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<boolean> | undefined

The validation and transformation pipeline.