Skip to content

Commit e3cc091

Browse files
vsemozhetbytevanlucas
authored andcommitted
doc: add missing URL argument types in fs.md
PR-URL: #18309 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 1efb9cd commit e3cc091

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/api/fs.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ changes:
843843
description: The `file` parameter can be a file descriptor now.
844844
-->
845845

846-
* `file` {string|Buffer|number} filename or file descriptor
846+
* `file` {string|Buffer|URL|number} filename or file descriptor
847847
* `data` {string|Buffer}
848848
* `options` {Object|string}
849849
* `encoding` {string|null} **Default:** `'utf8'`
@@ -898,7 +898,7 @@ changes:
898898
description: The `file` parameter can be a file descriptor now.
899899
-->
900900

901-
* `file` {string|Buffer|number} filename or file descriptor
901+
* `file` {string|Buffer|URL|number} filename or file descriptor
902902
* `data` {string|Buffer}
903903
* `options` {Object|string}
904904
* `encoding` {string|null} **Default:** `'utf8'`
@@ -1709,7 +1709,7 @@ changes:
17091709
it will emit a deprecation warning.
17101710
-->
17111711

1712-
* `path` {string|Buffer}
1712+
* `path` {string|Buffer|URL}
17131713
* `mode` {integer}
17141714
* `callback` {Function}
17151715
* `err` {Error}
@@ -1724,7 +1724,7 @@ Only available on macOS.
17241724
deprecated: v0.4.7
17251725
-->
17261726

1727-
* `path` {string|Buffer}
1727+
* `path` {string|Buffer|URL}
17281728
* `mode` {integer}
17291729

17301730
Synchronous lchmod(2). Returns `undefined`.
@@ -1739,7 +1739,7 @@ changes:
17391739
it will emit a deprecation warning.
17401740
-->
17411741

1742-
* `path` {string|Buffer}
1742+
* `path` {string|Buffer|URL}
17431743
* `uid` {integer}
17441744
* `gid` {integer}
17451745
* `callback` {Function}
@@ -1753,7 +1753,7 @@ to the completion callback.
17531753
deprecated: v0.4.7
17541754
-->
17551755

1756-
* `path` {string|Buffer}
1756+
* `path` {string|Buffer|URL}
17571757
* `uid` {integer}
17581758
* `gid` {integer}
17591759

@@ -2694,7 +2694,7 @@ changes:
26942694
it will emit a deprecation warning.
26952695
-->
26962696

2697-
* `path` {string|Buffer}
2697+
* `path` {string|Buffer|URL}
26982698
* `len` {integer} **Default:** `0`
26992699
* `callback` {Function}
27002700
* `err` {Error}
@@ -2711,7 +2711,7 @@ being thrown in the future.
27112711
added: v0.8.6
27122712
-->
27132713

2714-
* `path` {string|Buffer}
2714+
* `path` {string|Buffer|URL}
27152715
* `len` {integer} **Default:** `0`
27162716

27172717
Synchronous truncate(2). Returns `undefined`. A file descriptor can also be
@@ -2760,7 +2760,7 @@ Synchronous unlink(2). Returns `undefined`.
27602760
added: v0.1.31
27612761
-->
27622762

2763-
* `filename` {string|Buffer}
2763+
* `filename` {string|Buffer|URL}
27642764
* `listener` {Function} Optional, a listener previously attached using
27652765
`fs.watchFile()`
27662766

@@ -3120,7 +3120,7 @@ changes:
31203120
description: The `file` parameter can be a file descriptor now.
31213121
-->
31223122

3123-
* `file` {string|Buffer|integer} filename or file descriptor
3123+
* `file` {string|Buffer|URL|integer} filename or file descriptor
31243124
* `data` {string|Buffer|Uint8Array}
31253125
* `options` {Object|string}
31263126
* `encoding` {string|null} **Default:** `'utf8'`
@@ -3171,7 +3171,7 @@ changes:
31713171
description: The `file` parameter can be a file descriptor now.
31723172
-->
31733173

3174-
* `file` {string|Buffer|integer} filename or file descriptor
3174+
* `file` {string|Buffer|URL|integer} filename or file descriptor
31753175
* `data` {string|Buffer|Uint8Array}
31763176
* `options` {Object|string}
31773177
* `encoding` {string|null} **Default:** `'utf8'`

0 commit comments

Comments
 (0)