Skip to main content
Module

x/abstruct/validation.ts

Abstract structure for JavaScript data validation
Go to Latest
import * as abstruct from "https://deno.land/x/abstruct@1.0.0-beta.7/validation.ts";

Classes

Result of Error API.

Result of OK API.

Validation error.

Functions

Assert that the input passes validator.

The validate executes the Validator and returns a Result type. If validation succeeds, it returns Ok. If it fails, it returns Err.

Interfaces

Assert options.

Greedy assert options.

Lazy assert options.

Validate options.

Validation error options.

Type Aliases

Represent either success(Ok) or failure(Err).