Skip to main content
Module

x/fun/schemable.ts>LiteralSchemable

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 LiteralSchemable
import { type LiteralSchemable } from "https://deno.land/x/fun@v.2.0.0-alpha.11/schemable.ts";

Wraps a union of literals in Schemable.

definition: TypeClass<U> & { readonly literal: <A extends NonEmptyArray<Literal>, B, C, D, E>(...s: A) => $<U, [A[number], B, C], [D], [E]>; }