Skip to main content
Module

x/abstruct/mod.ts>Reporter

Abstract structure for JavaScript data validation
Go to Latest
class Reporter
import { Reporter } from "https://deno.land/x/abstruct@1.0.0-beta.7/mod.ts";

Type Parameters

optional
T = unknown

Methods

expect(messageOrReport: string | Reporter<T>["report"]): this
report(context: T): string
interface Reporter
import { type Reporter } from "https://deno.land/x/abstruct@1.0.0-beta.7/mod.ts";

Type Parameters

optional
T = unknown

Methods

report(context: T): string
expect(message: string): this
expect(report: Reporter["report"]): this