Skip to content

Commit 37631f8

Browse files
RobertoSimonini1targos
authored andcommittedAug 14, 2024
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 358fdac commit 37631f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎lib/internal/blob.js

+3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ class Blob {
312312
return dec.decode(await this.arrayBuffer());
313313
}
314314

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

0 commit comments

Comments
 (0)