Skip to main content
Module

x/jason/mod.ts

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

Functions

Creates a validator that matches an array of items that match the given validator within.

Creates a wrapper over the given validator and displays the given label within error stack messages.

Creates a validator that matches a custom predicate

Creates a validator that matches the number type with the optional options.

Creates a validator that matches objects that match the shape of the given object and where each of the keys specified have values that match their given validator.

Creates a validator that matches either the contained Validator or undefined.

Matches a string value with the given options.