Skip to main content
Module

x/fun/mod.ts>decoder.Union

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.Union
import { type decoder } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { Union } = decoder;

The Union type is used to associate two or more DecoderErrors as a union of errors.

definition: { readonly tag: "Union"; readonly errors: readonly [DecodeError, DecodeError, ...DecodeError[]]; }