Skip to main content
Module

x/fun/mod.ts>schemable.LazySchemable

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

Takes an id and a thunk returning a schemable and returns a schemable that matches the return value of the thunk. This schemable is necessary for handling recursive or corecursive schemables.

Type Parameters

U extends Kind
definition: TypeClass<U> & { readonly lazy: <A, B, C, D, E>(id: string, f: () => $<U, [A, B, C], [D], [E]>) => $<U, [A, B, C], [D], [E]>; }