Skip to content

Commit

Permalink
doc: fix documentation of FileHandle.prototype.appendFile
Browse files Browse the repository at this point in the history
PR-URL: #42588
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Backport-PR-URL: #42603
  • Loading branch information
aduh95 authored and juanarbol committed May 1, 2022
1 parent 4203d13 commit 77ba012
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/api/fs.md
Expand Up @@ -167,9 +167,22 @@ close {FileHandle}s. Node.js may change this behavior in the future.
#### `filehandle.appendFile(data[, options])`
<!-- YAML
added: v10.0.0
changes:
- version: v14.18.0
pr-url: https://github.com/nodejs/node/pull/37490
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
- version: v14.12.0
pr-url: https://github.com/nodejs/node/pull/34993
description: The `data` parameter will stringify an object with an
explicit `toString` function.
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/31030
description: The `data` parameter won't coerce unsupported input to
strings anymore.
-->

* `data` {string|Buffer|TypedArray|DataView}
* `data` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
|Stream}
* `options` {Object|string}
* `encoding` {string|null} **Default:** `'utf8'`
* Returns: {Promise} Fulfills with `undefined` upon success.
Expand Down

0 comments on commit 77ba012

Please sign in to comment.