Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer: add JSDoc to blob bytes method #54117

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
buffer: add JSDoc to blob bytes method
  • Loading branch information
RobertoSimonini1 committed Jul 30, 2024
commit 50f9bded152f16d500b1de946da0cc51109d289d
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());
}

/**
jakecastelli marked this conversation as resolved.
Show resolved Hide resolved
* @returns {Promise<Uint8Array>}
*/
bytes() {
if (!isBlob(this))
throw new ERR_INVALID_THIS('Blob');
Expand Down
Loading