Skip to content

Commit 76c3770

Browse files
RobertoSimonini1targos
authored andcommitted
buffer: add JSDoc to blob bytes method
PR-URL: #54117 Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent e9fc548 commit 76c3770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/blob.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ class Blob {
313313
return dec.decode(await this.arrayBuffer());
314314
}
315315

316+
/**
317+
* @returns {Promise<Uint8Array>}
318+
*/
316319
bytes() {
317320
if (!isBlob(this))
318321
throw new ERR_INVALID_THIS('Blob');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy