Skip to main content
Module

x/fun/mod.ts>optics.Viewer

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

Type Parameters

T extends Tag
S
A
definition: { readonly tag: T; readonly view: (s: S) => $<ToURI<T>, [A, never, never]>; }