puleos / object-hash

Generate hashes from javascript objects in node and the browser.
MIT License
1.41k stars 145 forks source link

typescript/type for hash should probably be any, and not object #111

Open cmawhorter opened 2 years ago

cmawhorter commented 2 years ago

this is a minor issue, but the first arg should probably be any instead of object, right? the hasher seems to support it. currently i've just been doing objectHash(value as any, ...).

https://github.com/puleos/object-hash/blob/676c3bc617dd2f50bf5a22dadcd7d39b30463519/index.js#L23-L24