Fix types

This commit is contained in:
Valtteri Karesto
2022-03-28 15:22:10 +03:00
parent 84ff667135
commit 1ab03f9bed

View File

@@ -15,7 +15,7 @@ const hash = async (string: string) => {
return hashHex;
}
function toHex(str) {
function toHex(str: string) {
var result = '';
for (var i = 0; i < str.length; i++) {
result += str.charCodeAt(i).toString(16);