UNPKG

306 BTypeScriptView Raw
1/**
2 * Interface for hashable types.
3 */
4export interface IHash<T> {
5 /**
6 * Returns a value's hash code. The contract of this function is: If
7 * `IEquiv.equiv` returns `true` for two values, their hash codes
8 * MUST also be equal.
9 */
10 hash(): T;
11}
12//# sourceMappingURL=hash.d.ts.map
\No newline at end of file