add types in sha1.ts