Create typescript definition for hasher

Typescript definition for Hasher.js
test file included