FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

buffer: add JSDoc to blob bytes method · nodejs/node@37631f8 · GitHub

/ node Public

Commit 37631f8

Browse files
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 358fdac commit 37631f8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/internal/blob.js‎

Lines changed: 3 additions & 0 deletions
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)

Back | FazBrowse Home | New Git URL