You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
343 B
14 lines
343 B
import type { Hash } from 'crypto'; |
|
|
|
declare function hashArray(value: Array<unknown>, hash?: Hash): Hash; |
|
|
|
declare function hashObject<T extends object>(value: T, hash?: Hash): Hash; |
|
|
|
declare function hashify( |
|
value: Array<unknown> | object | unknown, |
|
hash?: Hash, |
|
): Hash; |
|
|
|
export default hashify; |
|
|
|
export { hashArray, hashObject };
|
|
|