Skip to content

Commit

Permalink
buffer: add 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 f9f9a42 commit 50f9bde
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 50f9bde

Please sign in to comment.