Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/refinement.ts>Refinement

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 Refinement
import { type Refinement } from "https://deno.land/x/fun@v.2.0.0-alpha.11/refinement.ts";

The refinement type is a function that returns a boolean indicating that a value satisfies a type.

Type Parameters

A
B extends A
definition: (a: A) => a is B