Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/domain_functions/src/types.ts>ParserResult

Types and functions to make composition easy and safe
Latest
type alias ParserResult
import { type ParserResult } from "https://deno.land/x/domain_functions@v3.0.0/src/types.ts";

The result of input or environment validation. See the type Result for the return values of domain functions. It is usually not visible to the end user unless one wants to write an adapter for a schema validator.

definition: { success: true; data: T; } | { success: false; error: { issues: ParserIssue[]; }; }