Update argon2-browser types (#39225)

This commit is contained in:
mymindstorm 2019-10-18 17:32:37 -05:00 committed by Andrew Branch
parent 21c7a937ce
commit 1d892c020d
2 changed files with 5 additions and 1 deletions

View File

@ -24,4 +24,6 @@ const verifyOptions = {
(await argon2.hash({ ...mandatoryOptions, type: argon2.ArgonType.Argon2i })).encoded; // string
await argon2.verify(verifyOptions); // undefined
argon2.unloadRuntime(); // void
})();

View File

@ -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;