@sketch-hq/sketch-assistant-utils
Version:
Utility functions and types for Sketch Assistants.
11 lines • 430 B
TypeScript
/**
* Return the md5 hash of an object. Keys are deeply sorted for a stable hash.
* Useful for comparing deep similarity of Sketch document objects.
*/
declare const objectHash: (obj: {}, excludeKeys?: string[]) => string;
/**
* Compares two objects for deep equality.
*/
declare const objectsEqual: (o1: {}, o2: {}, excludeKeys?: string[]) => boolean;
export { objectHash, objectsEqual };
//# sourceMappingURL=index.d.ts.map