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

x/fun/schemable.ts>UnionSchemable

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface UnionSchemable
implements Hold<U>
import { type UnionSchemable } from "https://deno.land/x/fun@v2.0.0/schemable.ts";

Takes two schemables, left and right, and returns the union of them. This means that any value for must match either schemable.

Properties

readonly
union: <I, B, C, D, E>(right: $<U, [I, B, C], [D], [E]>) => <A>(left: $<U, [A, B, C], [D], [E]>) => $<U, [A | I, B, C], [D], [E]>