Promisify hash.digest return value in jsdoc
This commit is contained in:
parent
1054ed46d8
commit
cf6278ddc9
|
@ -106,7 +106,7 @@ export default {
|
|||
* Create a hash on the specified data using the specified algorithm
|
||||
* @param {module:enums.hash} algo Hash algorithm type (see {@link https://tools.ietf.org/html/rfc4880#section-9.4|RFC 4880 9.4})
|
||||
* @param {Uint8Array} data Data to be hashed
|
||||
* @returns {Uint8Array} hash value
|
||||
* @returns {Promise<Uint8Array>} hash value
|
||||
*/
|
||||
digest: function(algo, data) {
|
||||
switch (algo) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user