Promisify hash.digest return value in jsdoc

This commit is contained in:
Tom J 2018-12-30 16:52:57 +00:00 committed by GitHub
parent 1054ed46d8
commit cf6278ddc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {