Skip to main content
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
interface schemable.LiteralSchemable
implements Hold<U>
import { type schemable } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { LiteralSchemable } = schemable;

Wraps a union of literals in Schemable.

Type Parameters

U extends Kind

Properties

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