Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-04-03 23:48:44 +0300
committerGitHub <noreply@github.com>2022-04-03 23:48:44 +0300
commitae1f6db0886a540dcf33f27bb4f13c37e0c8899e (patch)
tree72f0d0fd7d7daca745f14b81fe1c286cf22d35bf /doc
parent154fa4132b0dfc23c2776960a7c2d2d5d7f4e59d (diff)
doc: fix documentation of `FileHandle.prototype.appendFile`
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/fs.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md
index 2f970575255..66363f11e94 100644
--- a/doc/api/fs.md
+++ b/doc/api/fs.md
@@ -179,9 +179,24 @@ longer be used.
<!-- YAML
added: v10.0.0
+changes:
+ - version:
+ - v15.14.0
+ - 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.