UNPKG

760 BTypeScriptView Raw
1export interface IEquiv {
2 /**
3 * Returns `true` if this *value* is equivalent to `o`. Also see
4 * [ICompare.compare](https://docs.thi.ng/umbrella/api/interfaces/ICompare.html#compare)
5 * and
6 * [IHash.hash](https://docs.thi.ng/umbrella/api/interfaces/IHash.html#hash).
7 *
8 * @param o - value to check for equivalence
9 */
10 equiv(o: any): boolean;
11}
12/**
13 * @param T - value type
14 */
15export interface IEqualsDelta<T> {
16 /**
17 * Returns `true` if this value equals `o` with optional allowance
18 * for given tolerance `eps`.
19 *
20 * @param o - 2nd value to test
21 * @param eps - tolerance (usually defaults to `DEFAULT_EPS`)
22 */
23 eqDelta(o: T, eps?: number): boolean;
24}
25//# sourceMappingURL=equiv.d.ts.map
\No newline at end of file