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

x/zod/index.ts>ZodBoolean

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodBoolean
extends ZodType<boolean, ZodBooleanDef, boolean>
import { ZodBoolean } from "https://deno.land/x/zod@v3.23.7/index.ts";

Methods

_parse(input: ParseInput): ParseReturnType<boolean>

Static Properties

create: (params?: RawCreateParams & { coerce?: boolean; }) => ZodBoolean