From ac829f0135b02e0c130e2433e028235c2bed2059 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 6 Feb 2018 13:56:53 +0200 Subject: [PATCH] doc: add missing URL types in fs promise API This seems to be slipped in https://github.com/nodejs/node/pull/18297 PR-URL: https://github.com/nodejs/node/pull/18599 Refs: https://github.com/nodejs/node/pull/18309 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Khaidi Chu --- doc/api/fs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 6fe32308134..47ad3c21013 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3548,7 +3548,7 @@ the error raised if the file is not accessible. added: REPLACEME --> -* `file` {string|Buffer|[FileHandle][]} filename or `FileHandle` +* `file` {string|Buffer|URL|[FileHandle][]} filename or `FileHandle` * `data` {string|Buffer} * `options` {Object|string} * `encoding` {string|null} **Default:** `'utf8'` @@ -3762,7 +3762,7 @@ This function does not work on AIX versions before 7.1, it will resolve the deprecated: REPLACEME --> -* `path` {string|Buffer} +* `path` {string|Buffer|URL} * `mode` {integer} * Returns: {Promise} @@ -3774,7 +3774,7 @@ no arguments upon success. This method is only implemented on macOS. deprecated: REPLACEME --> -* `path` {string|Buffer} +* `path` {string|Buffer|URL} * `uid` {integer} * `gid` {integer} * Returns: {Promise} @@ -4105,7 +4105,7 @@ the `target` argument will automatically be normalized to absolute path. added: REPLACEME --> -* `path` {string|Buffer} +* `path` {string|Buffer|URL} * `len` {integer} **Default:** `0` * Returns: {Promise} @@ -4180,7 +4180,7 @@ the end of the file. added: REPLACEME --> -* `file` {string|Buffer|[FileHandle][]} filename or `FileHandle` +* `file` {string|Buffer|URL|[FileHandle][]} filename or `FileHandle` * `data` {string|Buffer|Uint8Array} * `options` {Object|string} * `encoding` {string|null} **Default:** `'utf8'`