Merge pull request #828 from tomholub/patch-1
Fix various JSDoc typos etc
This commit is contained in:
commit
37bc379663
|
@ -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) {
|
||||
|
|
|
@ -339,15 +339,15 @@ export default {
|
|||
/**
|
||||
* Concat a list of Uint8Arrays, Strings or Streams
|
||||
* The caller must not mix Uint8Arrays with Strings, but may mix Streams with non-Streams.
|
||||
* @param {Array<Uint8array|String|ReadableStream>} Array of Uint8Arrays/Strings/Streams to concatenate
|
||||
* @returns {Uint8array|String|ReadableStream} Concatenated array
|
||||
* @param {Array<Uint8Array|String|ReadableStream>} Array of Uint8Arrays/Strings/Streams to concatenate
|
||||
* @returns {Uint8Array|String|ReadableStream} Concatenated array
|
||||
*/
|
||||
concat: stream.concat,
|
||||
|
||||
/**
|
||||
* Concat Uint8Arrays
|
||||
* @param {Array<Uint8array>} Array of Uint8Arrays to concatenate
|
||||
* @returns {Uint8array} Concatenated array
|
||||
* @param {Array<Uint8Array>} Array of Uint8Arrays to concatenate
|
||||
* @returns {Uint8Array} Concatenated array
|
||||
*/
|
||||
concatUint8Array: stream.concatUint8Array,
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user