Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Wraps a union of literals in Schemable.

Type Parameters

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