x/superstruct/error.ts

A simple and composable way to validate data in JavaScript (and TypeScript).
Go to Latest
type alias Failure
import { type Failure } from "https://deno.land/x/superstruct@v0.16.0/error.ts?s=Failure";

A StructFailure represents a single specific failure in validation.

definition: { value: any; key: any; type: string; refinement: string | undefined; message: string; branch: Array<any>; path: Array<any>; }[src]