json-joy
Version:
Collection of libraries for building collaborative editing apps.
13 lines (12 loc) • 403 B
TypeScript
/**
* Produces a *structural hash* of a JSON value.
*
* This is a hash that is not sensitive to the order of properties in object and
* it preserves spatial information of the JSON nodes.
*
* The hash is guaranteed to contain only printable ASCII characters, excluding
* the newline character.
*
* @param val A JSON value to hash.
*/
export declare const structHash: (val: unknown) => string;