Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/src/store/storage/summarisable_storage/lifting_monoid.ts>LiftingMonoid

A Willow Data Model and Willow General Purpose Sync protocol implementation in TypeScript.
Latest
type alias LiftingMonoid
import { type LiftingMonoid } from "https://deno.land/x/willow@0.3.5/src/store/storage/summarisable_storage/lifting_monoid.ts";

This interface combines two bits of functionality:

  1. Lifting values of some type BaseType into the universe of a monoid (LiftedType).
  2. Information about the moniod of universe LiftedType (the neutral element and the combine function).

Type Parameters

BaseType
LiftedType
definition: { lift: (base: BaseType) => Promise<LiftedType>; combine: (a: LiftedType, b: LiftedType) => LiftedType; neutral: LiftedType; }