Skip to main content
Module

x/valita/mod.ts>Ok

A typesafe validation & parsing library for TypeScript.
Latest
type alias Ok
import { type Ok } from "https://deno.land/x/valita@v0.3.8/mod.ts";

A successful validation/parsing result.

Used in situations where both the parsing success and failure cases are returned as values.

definition: { readonly ok: true; readonly value: T; }