I wrote up a type definition file for this module to use in my project until I realized I wouldn't be able to use this package due to lacking WASM support in my environment. Oh well. Maybe someone will find it helpful or it can be integrated directly into this codebase!
It might be as simple as saving this to argon2-browser.d.ts and then adding "types": "./argon2-browser.d.ts" in package.json although I'm not sure if the code above might need some restructuring. Maybe someone who actually needs this can figure it out, otherwise anyone who uses TypeScript can copy-paste this into their own project and it should work!
I wrote up a type definition file for this module to use in my project until I realized I wouldn't be able to use this package due to lacking WASM support in my environment. Oh well. Maybe someone will find it helpful or it can be integrated directly into this codebase!
It might be as simple as saving this to
argon2-browser.d.ts
and then adding"types": "./argon2-browser.d.ts"
inpackage.json
although I'm not sure if the code above might need some restructuring. Maybe someone who actually needs this can figure it out, otherwise anyone who uses TypeScript can copy-paste this into their own project and it should work!