Skip to main content
Module

x/abstruct/mod.ts>Expectation

Abstract structure for JavaScript data validation
Latest
interface Expectation
import { type Expectation } from "https://deno.land/x/abstruct@1.0.0/mod.ts";

Binding message API.

Type Parameters

optional
T = unknown

Methods

expect(message: string): this

Reserve message to be.

expect(report: (context: T) => string): this

Reserve dynamic message to be.