Skip to content

Commit af88c0f

Browse files
vsemozhetbytMylesBorins
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 454a3d9 commit af88c0f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/api/fs.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ changes:
621621
description: The `file` parameter can be a file descriptor now.
622622
-->
623623

624-
* `file` {string|Buffer|number} filename or file descriptor
624+
* `file` {string|Buffer|URL|number} filename or file descriptor
625625
* `data` {string|Buffer}
626626
* `options` {Object|string}
627627
* `encoding` {string|null} **Default:** `'utf8'`
@@ -676,7 +676,7 @@ changes:
676676
description: The `file` parameter can be a file descriptor now.
677677
-->
678678

679-
* `file` {string|Buffer|number} filename or file descriptor
679+
* `file` {string|Buffer|URL|number} filename or file descriptor
680680
* `data` {string|Buffer}
681681
* `options` {Object|string}
682682
* `encoding` {string|null} **Default:** `'utf8'`
@@ -1487,7 +1487,7 @@ changes:
14871487
it will emit a deprecation warning.
14881488
-->
14891489

1490-
* `path` {string|Buffer}
1490+
* `path` {string|Buffer|URL}
14911491
* `mode` {integer}
14921492
* `callback` {Function}
14931493
* `err` {Error}
@@ -1502,7 +1502,7 @@ Only available on macOS.
15021502
deprecated: v0.4.7
15031503
-->
15041504

1505-
* `path` {string|Buffer}
1505+
* `path` {string|Buffer|URL}
15061506
* `mode` {integer}
15071507

15081508
Synchronous lchmod(2). Returns `undefined`.
@@ -1517,7 +1517,7 @@ changes:
15171517
it will emit a deprecation warning.
15181518
-->
15191519

1520-
* `path` {string|Buffer}
1520+
* `path` {string|Buffer|URL}
15211521
* `uid` {integer}
15221522
* `gid` {integer}
15231523
* `callback` {Function}
@@ -1531,7 +1531,7 @@ to the completion callback.
15311531
deprecated: v0.4.7
15321532
-->
15331533

1534-
* `path` {string|Buffer}
1534+
* `path` {string|Buffer|URL}
15351535
* `uid` {integer}
15361536
* `gid` {integer}
15371537

@@ -2396,7 +2396,7 @@ changes:
23962396
it will emit a deprecation warning.
23972397
-->
23982398

2399-
* `path` {string|Buffer}
2399+
* `path` {string|Buffer|URL}
24002400
* `len` {integer} **Default:** `0`
24012401
* `callback` {Function}
24022402
* `err` {Error}
@@ -2410,7 +2410,7 @@ first argument. In this case, `fs.ftruncate()` is called.
24102410
added: v0.8.6
24112411
-->
24122412

2413-
* `path` {string|Buffer}
2413+
* `path` {string|Buffer|URL}
24142414
* `len` {integer} **Default:** `0`
24152415

24162416
Synchronous truncate(2). Returns `undefined`. A file descriptor can also be
@@ -2456,7 +2456,7 @@ Synchronous unlink(2). Returns `undefined`.
24562456
added: v0.1.31
24572457
-->
24582458

2459-
* `filename` {string|Buffer}
2459+
* `filename` {string|Buffer|URL}
24602460
* `listener` {Function} Optional, a listener previously attached using
24612461
`fs.watchFile()`
24622462

@@ -2816,7 +2816,7 @@ changes:
28162816
description: The `file` parameter can be a file descriptor now.
28172817
-->
28182818

2819-
* `file` {string|Buffer|integer} filename or file descriptor
2819+
* `file` {string|Buffer|URL|integer} filename or file descriptor
28202820
* `data` {string|Buffer|Uint8Array}
28212821
* `options` {Object|string}
28222822
* `encoding` {string|null} **Default:** `'utf8'`
@@ -2867,7 +2867,7 @@ changes:
28672867
description: The `file` parameter can be a file descriptor now.
28682868
-->
28692869

2870-
* `file` {string|Buffer|integer} filename or file descriptor
2870+
* `file` {string|Buffer|URL|integer} filename or file descriptor
28712871
* `data` {string|Buffer|Uint8Array}
28722872
* `options` {Object|string}
28732873
* `encoding` {string|null} **Default:** `'utf8'`

0 commit comments

Comments
 (0)