Skip to content

Commit

Permalink
added JSDoc to blob bytes method
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoSimonini1 committed Jul 30, 2024
1 parent 027710e commit db5b2a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/internal/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ class Blob {
return dec.decode(await this.arrayBuffer());
}

/**
* @returns {Promise<Uint8Array>}
*/
bytes() {
if (!isBlob(this))
throw new ERR_INVALID_THIS('Blob');
Expand Down

0 comments on commit db5b2a2

Please sign in to comment.