Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>decoder.Many

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

The Many type is used to represent zero or more DecodeErrors without context. It's purpose is to be used as both Empty and a target for combineenation of DecodeErrors that are neither Union or Intersection types. This allows us to build a Combinable over DecodeError.

definition: { readonly tag: "Many"; readonly errors: readonly DecodeError[]; }