UNPKG

synapse-storage

Version:

Набор инструментов для управления состоянием и апи-запросами

22 lines (21 loc) 931 B
/** * Deep equality check for two values. */ export declare function isEqual(a: any, b: any): boolean; /** * Shallow (one-level) equality check. Two values are equal when they are the * same reference, equal primitives, or objects with the same keys whose values * are strictly equal (`===`) — nested objects are NOT compared deeply. * * Shared default comparator for the shallow-compare middlewares (sync + async). */ export declare function shallowEqual(prev: any, next: any): boolean; /** * Finds all changed paths between two objects. */ export declare function findChangedPaths(oldObj: any, newObj: any, prefix?: string, changedPaths?: Set<string>, visited?: WeakMap<any, WeakSet<any>>): Set<string>; /** * Creates a lazy deep-clone of an object. * Shallow copy initially, structuredClone on first nested property access. */ export declare function createLazyClone<T extends Record<string, any>>(source: T): T;