UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

12 lines (11 loc) 454 B
import { type JsonNode } from '../json-crdt'; /** * Constructs a structural hash of the view of the node. * * Produces a *structural hash* of a JSON CRDT node. Works the same as * `structHash, but uses the `JsonNode` interface instead of a generic value. * * @todo PERF: instead of constructing a "str" and "bin" view, iterate over * the RGA chunks and hash them directly. */ export declare const structHashCrdt: (node?: JsonNode) => string;