Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add missing URL types in fs promise API #18599

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'`
Expand Down Expand Up @@ -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}

Expand All @@ -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}
Expand Down Expand Up @@ -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}

Expand Down Expand Up @@ -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'`
Expand Down