UNPKG

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