Skip to main content
Module

x/value_schema/dist-deno/appliers/number/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/number/type.ts";

Properties

optional
strictType: boolean

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

optional
acceptsSpecialFormats: boolean

accepts string with special format; e.g., "1e+2", "0x100"

optional
integer: IntegerLike

needs integer