UNPKG

343 BTypeScriptView Raw
1import type { Hash } from 'crypto';
2
3declare function hashArray(value: Array<unknown>, hash?: Hash): Hash;
4
5declare function hashObject<T extends object>(value: T, hash?: Hash): Hash;
6
7declare function hashify(
8 value: Array<unknown> | object | unknown,
9 hash?: Hash,
10): Hash;
11
12export default hashify;
13
14export { hashArray, hashObject };