Skip to main content
Module

x/value_schema/dist-deno/appliers/boolean/type.ts>Rules

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, Deno, and Bun
Go to Latest
interface Rules
import { type Rules } from "https://deno.land/x/value_schema@v4.0.0-rc.2/dist-deno/appliers/boolean/type.ts";

Properties

optional
strictType: boolean

does not convert type; causes error if type does not match

optional
acceptsAllNumbers: boolean

accepts all number value not only 0 and 1 (0 means false, others true)