Skip to content

Commit ac829f0

Browse files
committed
doc: add missing URL types in fs promise API
This seems to be slipped in #18297 PR-URL: #18599 Refs: #18309 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Khaidi Chu <[email protected]>
1 parent f6e1466 commit ac829f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/fs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3548,7 +3548,7 @@ the error raised if the file is not accessible.
35483548
added: REPLACEME
35493549
-->
35503550

3551-
* `file` {string|Buffer|[FileHandle][]} filename or `FileHandle`
3551+
* `file` {string|Buffer|URL|[FileHandle][]} filename or `FileHandle`
35523552
* `data` {string|Buffer}
35533553
* `options` {Object|string}
35543554
* `encoding` {string|null} **Default:** `'utf8'`
@@ -3762,7 +3762,7 @@ This function does not work on AIX versions before 7.1, it will resolve the
37623762
deprecated: REPLACEME
37633763
-->
37643764

3765-
* `path` {string|Buffer}
3765+
* `path` {string|Buffer|URL}
37663766
* `mode` {integer}
37673767
* Returns: {Promise}
37683768

@@ -3774,7 +3774,7 @@ no arguments upon success. This method is only implemented on macOS.
37743774
deprecated: REPLACEME
37753775
-->
37763776

3777-
* `path` {string|Buffer}
3777+
* `path` {string|Buffer|URL}
37783778
* `uid` {integer}
37793779
* `gid` {integer}
37803780
* Returns: {Promise}
@@ -4105,7 +4105,7 @@ the `target` argument will automatically be normalized to absolute path.
41054105
added: REPLACEME
41064106
-->
41074107

4108-
* `path` {string|Buffer}
4108+
* `path` {string|Buffer|URL}
41094109
* `len` {integer} **Default:** `0`
41104110
* Returns: {Promise}
41114111

@@ -4180,7 +4180,7 @@ the end of the file.
41804180
added: REPLACEME
41814181
-->
41824182

4183-
* `file` {string|Buffer|[FileHandle][]} filename or `FileHandle`
4183+
* `file` {string|Buffer|URL|[FileHandle][]} filename or `FileHandle`
41844184
* `data` {string|Buffer|Uint8Array}
41854185
* `options` {Object|string}
41864186
* `encoding` {string|null} **Default:** `'utf8'`

0 commit comments

Comments
 (0)