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

x/range_reconcile/src/range_messenger/range_messenger_config.ts>RangeMessengerConfig

Efficiently sync sets with range-based set reconciliation
Go to Latest
type alias RangeMessengerConfig
import { type RangeMessengerConfig } from "https://deno.land/x/range_reconcile@0.1.2/src/range_messenger/range_messenger_config.ts";

Type Parameters

EncodedType
ValueType
LiftType
definition: { encode: { emptySet: (canRespond: boolean) => EncodedType; lowerBound: (value: ValueType) => EncodedType; payload: (value: ValueType, end?: { canRespond: boolean; upperBound: ValueType; }) => EncodedType; emptyPayload: (upperBound: ValueType) => EncodedType; done: (upperBound: ValueType) => EncodedType; fingerprint: (fingerprint: LiftType, upperBound: ValueType) => EncodedType; terminal: () => EncodedType; }; decode: { emptySet: (message: EncodedType) => boolean; lowerBound: (message: EncodedType) => ValueType; payload: (message: EncodedType) => { value: ValueType; end?: { canRespond: boolean; upperBound: ValueType; }; }; emptyPayload: (message: EncodedType) => ValueType; done: (message: EncodedType) => ValueType; fingerprint: (message: EncodedType) => { fingerprint: LiftType; upperBound: ValueType; }; terminal: (e: EncodedType) => true; }; }