Closed 188599 closed 1 year ago
Experiencing the same issue.
In CryptoJS the type for the hasher is simply "any", as is the type of "CryptoJS.algo.SHA512".
If I cast the Crypto.algo.SHA512 to < any > things work.
The type issues are fixed in v2.0.0
Typescript complains, but it works:
Typescript accepts this but it doesn't work:
I'm guessing the type expected for
hasher
should be something like this: