fix(types): expose argon2 declaration globally

This commit is contained in:
2026-04-30 22:16:48 -04:00
parent 0873df7e82
commit a6b24b318e
4 changed files with 3 additions and 3 deletions

View File

@@ -1,25 +0,0 @@
declare module "argon2-wasm-pro" {
interface Argon2Options {
pass: string | Uint8Array;
salt: Uint8Array;
time: number;
mem: number;
hashLen: number;
parallelism: number;
type: number;
}
interface Argon2Result {
hash: Uint8Array;
hashHex: string;
encoded: string;
}
function hash(options: Argon2Options): Promise<Argon2Result>;
const argon2: {
hash: typeof hash;
};
export default argon2;
}