Skip to main content
Module

x/fun/decoder.ts>Wrap

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
type alias Wrap
import { type Wrap } from "https://deno.land/x/fun@v2.0.0/decoder.ts";

The Wrap type is used to give context to an existing DecodeError. This can be as simple as wrapping an array decode error to indicate that we first check for an array before we check that the array matches a tuple definition. It can also be used to constrain or annotate.

definition: { readonly tag: "Wrap"; readonly context: string; readonly error: DecodeError; }