From 7b9e0e983e3a1a5b5bda2ebd848ad1bc41ab4781 Mon Sep 17 00:00:00 2001 From: Hasegawa-Yukihiro Date: Tue, 28 Jan 2025 23:26:32 +0900 Subject: [PATCH] doc: update options to include signal in filehandle.writeFile() --- doc/api/fs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index d61b7c08c9597f..9b2982d20d08a2 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -805,6 +805,7 @@ changes: * `options` {Object|string} * `encoding` {string|null} The expected character encoding when `data` is a string. **Default:** `'utf8'` + * `signal` {AbortSignal|undefined} allows aborting an in-progress writeFile. **Default:** `undefined` * Returns: {Promise} Asynchronously writes data to a file, replacing the file if it already exists.