Skip to main content
Module

x/fun/decoder.ts>Leaf

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

The Leaf type is the simplest of DecodeErrors. It indicates that some concrete value did not match the expected value. The reason field is used to indicate the expected value.

definition: { readonly tag: "Leaf"; readonly value: unknown; readonly reason: string; }