Skip to main content
Module

x/fun/schemable.ts>Schemable

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

A Schemable is the union of all schemable methods. This allows one to build an arbitrary Schema using the Schemable interface, then pass a concrete Schemable implementation to the Schema. Thus, one can build a single model and produce decoders, guards, or jsonschema from that model.