fix(types): expose argon2 declaration globally
This commit is contained in:
25
packages/core/src/types/argon2-wasm-pro.d.ts
vendored
25
packages/core/src/types/argon2-wasm-pro.d.ts
vendored
@@ -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;
|
||||
}
|
||||
@@ -5,5 +5,5 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["./src", "./test"]
|
||||
"include": ["./src", "./test", "../../types/**/*.d.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user