Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/schemable.ts>IntersectSchemable

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface IntersectSchemable
implements Hold<U>
import { type IntersectSchemable } from "https://deno.land/x/fun@v2.0.0/schemable.ts";

Takes two schemables, left and right, and returns the intersection of them. This means that any value for must match both schemables.

Properties

readonly
intersect: <I, B, C, D, E>(right: $<U, [I, B, C], [D], [E]>) => <A>(left: $<U, [A, B, C], [D], [E]>) => $<U, [Spread<A & I>, B, C], [D], [E]>