UNPKG

mute-structs

Version:

NodeJS module providing an implementation of the LogootSplit CRDT algorithm

12 lines (11 loc) 566 B
import { Epoch } from "../epoch/epoch"; import { RenamableReplicableList } from "../renamablereplicablelist"; import { LogootSOperation } from "./logootsoperation"; import { RenamableListOperation } from "./renamablelistoperation"; import { TextOperation } from "./textoperation"; export declare abstract class RenamableLogootSOperation<T extends LogootSOperation> extends RenamableListOperation { readonly op: T; constructor(op: T, epoch: Epoch); readonly author: number; abstract execute(renamableList: RenamableReplicableList): TextOperation[]; }