mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update argon2-browser types (#39225)
This commit is contained in:
parent
21c7a937ce
commit
1d892c020d
@ -24,4 +24,6 @@ const verifyOptions = {
|
||||
(await argon2.hash({ ...mandatoryOptions, type: argon2.ArgonType.Argon2i })).encoded; // string
|
||||
|
||||
await argon2.verify(verifyOptions); // undefined
|
||||
|
||||
argon2.unloadRuntime(); // void
|
||||
})();
|
||||
|
||||
4
types/argon2-browser/index.d.ts
vendored
4
types/argon2-browser/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for argon2-browser 1.6
|
||||
// Type definitions for argon2-browser 1.12
|
||||
// Project: https://github.com/antelle/argon2-browser#readme
|
||||
// Definitions by: Ivan Gabriele <https://github.com/ivangabriele>
|
||||
// Brendan Early <https://github.com/mymindstorm>
|
||||
@ -12,6 +12,8 @@ export function hash(
|
||||
options: Argon2BrowserHashOptions,
|
||||
): Promise<Argon2BrowserHashResult>;
|
||||
|
||||
export function unloadRuntime(): void;
|
||||
|
||||
interface Argon2BrowserHashOptions {
|
||||
pass: string | Uint8Array;
|
||||
salt: string | Uint8Array;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user