From 77ba012065c9348a665f78657c54fdacb1ace061 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 3 Apr 2022 22:48:44 +0200 Subject: [PATCH] doc: fix documentation of `FileHandle.prototype.appendFile` PR-URL: https://github.com/nodejs/node/pull/42588 Reviewed-By: James M Snell Reviewed-By: Darshan Sen Reviewed-By: Luigi Pinca Reviewed-By: Mestery Backport-PR-URL: https://github.com/nodejs/node/pull/42603 --- doc/api/fs.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 88cbbb4afbc170..bf605818c8132c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -167,9 +167,22 @@ close {FileHandle}s. Node.js may change this behavior in the future. #### `filehandle.appendFile(data[, options])` -* `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.