mute-structs
Version:
NodeJS module providing an implementation of the LogootSplit CRDT algorithm
15 lines (14 loc) • 447 B
TypeScript
import { EpochId } from "./epochid";
export declare class Epoch {
static fromPlain(o: unknown): Epoch | null;
readonly id: EpochId;
readonly parentId?: EpochId;
constructor(id: EpochId, parentId?: EpochId);
/**
* Check if two instances of epochs are equal
*
* @param {Epoch} other The other epoch to which to compare
* @return {boolean} Are the two epochs equal
*/
equals(other: Epoch): boolean;
}