Skip to main content
Module

x/jason/mod.ts>StringInit

A composable validation library for TypeScript and JavaScript with amazing type support.
Latest
interface StringInit
import { type StringInit } from "https://deno.land/x/jason@0.1.3/mod.ts";

Properties

optional
length: Partial<MinMax> | number

Either the minimum or maxmimum length as an object or just a static length.

optional
startsWith: string
optional
endsWith: string
optional
customValidator: Validator<string>["validate"]