fix(types): expose argon2 declaration globally

This commit is contained in:
old4ever committed 2026-04-30 22:16:48 -04:00
1 parent 0873df7e82
commit a6b24b318e
4 files changed
+3 -3

No files matched your search

-25
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;
}
+1 -1
View File
@@ -5,5 +5,5 @@
"@/*": ["./src/*"]
}
},
"include": ["./src", "./test"]
"include": ["./src", "./test", "../../types/**/*.d.ts"]
}