Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v2.0.2/error.ts";

A StructFailure represents a single specific failure in validation.

definition: { value: any; key: any; type: string; refinement: string | undefined; message: string; explanation?: string; branch: Array<any>; path: Array<any>; }