mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Update argon2-browser types (#39225)
This commit is contained in:
committed by
Andrew Branch
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
|
||||
})();
|
||||
|
||||
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user