Skip to main content
Module

x/fun/mod.ts>schemable.Literal

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
type alias schemable.Literal
import { type schemable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { Literal } = schemable;

These are the super-types that a Literal schema must extent. They are used to constrain the inputs for LiteralSchemable.

definition:
| string
| number
| boolean
| null
| undefined