UNPKG

magnitude-core

Version:
11 lines (10 loc) 593 B
export declare function retryOnError<T>(fnToRetry: () => Promise<T>, errorSubstrings: string[], retryLimit: number, delayMs?: number): Promise<T>; /** * Performs a deep comparison between two values to determine if they are equivalent. * * @param a The first value to compare. * @param b The second value to compare. * @param cache A WeakMap to handle circular references. Should not be provided by the caller. * @returns `true` if the values are deeply equal, `false` otherwise. */ export declare function deepEquals(a: any, b: any, cache?: WeakMap<object, WeakSet<object>>): boolean;