Skip to content

Commit 73a1d22

Browse files
aduh95juanarbol
authored andcommitted
doc: fix documentation of FileHandle.prototype.appendFile
PR-URL: #42588 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent 6258055 commit 73a1d22

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

doc/api/fs.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,24 @@ longer be used.
179179

180180
<!-- YAML
181181
added: v10.0.0
182+
changes:
183+
- version:
184+
- v15.14.0
185+
- v14.18.0
186+
pr-url: https://github.com/nodejs/node/pull/37490
187+
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
188+
- version: v14.12.0
189+
pr-url: https://github.com/nodejs/node/pull/34993
190+
description: The `data` parameter will stringify an object with an
191+
explicit `toString` function.
192+
- version: v14.0.0
193+
pr-url: https://github.com/nodejs/node/pull/31030
194+
description: The `data` parameter won't coerce unsupported input to
195+
strings anymore.
182196
-->
183197

184-
* `data` {string|Buffer|TypedArray|DataView}
198+
* `data` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
199+
|Stream}
185200
* `options` {Object|string}
186201
* `encoding` {string|null} **Default:** `'utf8'`
187202
* Returns: {Promise} Fulfills with `undefined` upon success.

0 commit comments

Comments
 (0)