Skip to main content
Module

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

Properties

optional
separatedBy: string | RegExp

assumes entire values are in one string separated by pattern

optional
toArray: boolean

makes array that has 1 element if input value is not an array