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
|
* 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 {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
|
* @param {Uint8Array} data Data to be hashed
|
||||||
* @returns {Uint8Array} hash value
|
* @returns {Promise<Uint8Array>} hash value
|
||||||
*/
|
*/
|
||||||
digest: function(algo, data) {
|
digest: function(algo, data) {
|
||||||
switch (algo) {
|
switch (algo) {
|
||||||
|
|
|
@ -339,15 +339,15 @@ export default {
|
||||||
/**
|
/**
|
||||||
* Concat a list of Uint8Arrays, Strings or Streams
|
* Concat a list of Uint8Arrays, Strings or Streams
|
||||||
* The caller must not mix Uint8Arrays with Strings, but may mix Streams with non-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
|
* @param {Array<Uint8Array|String|ReadableStream>} Array of Uint8Arrays/Strings/Streams to concatenate
|
||||||
* @returns {Uint8array|String|ReadableStream} Concatenated array
|
* @returns {Uint8Array|String|ReadableStream} Concatenated array
|
||||||
*/
|
*/
|
||||||
concat: stream.concat,
|
concat: stream.concat,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Concat Uint8Arrays
|
* Concat Uint8Arrays
|
||||||
* @param {Array<Uint8array>} Array of Uint8Arrays to concatenate
|
* @param {Array<Uint8Array>} Array of Uint8Arrays to concatenate
|
||||||
* @returns {Uint8array} Concatenated array
|
* @returns {Uint8Array} Concatenated array
|
||||||
*/
|
*/
|
||||||
concatUint8Array: stream.concatUint8Array,
|
concatUint8Array: stream.concatUint8Array,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user