mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Added support for minor version parameters in bcrypt 2.0 (#25182)
* Updated for bcrypt 2.0 * Added missing @param declaration for minor
This commit is contained in:
committed by
Wesley Wigham
parent
1462bc999b
commit
ab7694a033
@@ -8,15 +8,24 @@ let error: Error;
|
||||
|
||||
str = bcrypt.genSaltSync();
|
||||
str = bcrypt.genSaltSync(num);
|
||||
str = bcrypt.genSaltSync(num, str);
|
||||
|
||||
bcrypt.genSalt(num, (err: Error, salt: string): void => { error = err; str = salt; })
|
||||
.then(salt => str = salt)
|
||||
.catch(err => error = err);
|
||||
|
||||
bcrypt.genSalt(num, str, (err: Error, salt: string): void => { error = err; str = salt; })
|
||||
.then(salt => str = salt)
|
||||
.catch(err => error = err);
|
||||
|
||||
bcrypt.genSalt(num)
|
||||
.then(salt => str = salt)
|
||||
.catch(err => error = err);
|
||||
|
||||
bcrypt.genSalt(num, str)
|
||||
.then(salt => str = salt)
|
||||
.catch(err => error = err);
|
||||
|
||||
bcrypt.genSalt((err: Error, salt: string): void => { error = err; str = salt; })
|
||||
.then(salt => str = salt)
|
||||
.catch(err => error = err);
|
||||
|
||||
Reference in New Issue
Block a user