GeezerVison is showing github.com — doc: add missing return types in buffer.md · nodejs/node@695cd89
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/buffer.md +5Lines changed: 5 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -536,6 +536,8 @@ added: |
536 | 536 | - v20.16.0 |
537 | 537 | --> |
538 | 538 |
|
| 539 | +* Returns: {Promise} |
| 540 | + |
539 | 541 | The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`. |
540 | 542 |
|
541 | 543 | ```js |
@@ -566,6 +568,7 @@ added: |
566 | 568 | * `start` {number} The starting index. |
567 | 569 | * `end` {number} The ending index. |
568 | 570 | * `type` {string} The content-type for the new `Blob` |
| 571 | +* Returns: {Blob} |
569 | 572 |
|
570 | 573 | Creates and returns a new `Blob` containing a subset of this `Blob` objects |
571 | 574 | data. The original `Blob` is not altered. |
@@ -5274,6 +5277,7 @@ added: |
5274 | 5277 | > Stability: 3 - Legacy. Use `Buffer.from(data, 'base64')` instead. |
5275 | 5278 |
|
5276 | 5279 | * `data` {any} The Base64-encoded input string. |
| 5280 | +* Returns: {string} |
5277 | 5281 |
|
5278 | 5282 | Decodes a string of Base64-encoded data into bytes, and encodes those bytes |
5279 | 5283 | into a string using Latin-1 (ISO-8859-1). |
@@ -5304,6 +5308,7 @@ added: |
5304 | 5308 | > Stability: 3 - Legacy. Use `buf.toString('base64')` instead. |
5305 | 5309 |
|
5306 | 5310 | * `data` {any} An ASCII (Latin1) string. |
| 5311 | +* Returns: {string} |
5307 | 5312 |
|
5308 | 5313 | Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes |
5309 | 5314 | into a string using Base64. |
|