Skip to main content
Module

x/superstruct/error.ts>Failure

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.5/error.ts";

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>; }