Skip to main content
Module

x/domain_functions/src/types.ts>ParserResult

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias ParserResult
import { type ParserResult } from "https://deno.land/x/domain_functions@v2.6.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[]; }; }