Skip to main content
Module

x/fun/mod.ts>semigroup.TypeOf

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

A type level extractor, used to pull the inner type from a Semigroup.

definition: T extends Semigroup<infer A> ? A : never