Skip to content

Commit

Permalink
doc: add missing URL argument types in fs.md
Browse files Browse the repository at this point in the history
PR-URL: #18309
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Feb 27, 2018
1 parent 454a3d9 commit af88c0f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ changes:
description: The `file` parameter can be a file descriptor now.
-->

* `file` {string|Buffer|number} filename or file descriptor
* `file` {string|Buffer|URL|number} filename or file descriptor
* `data` {string|Buffer}
* `options` {Object|string}
* `encoding` {string|null} **Default:** `'utf8'`
Expand Down Expand Up @@ -676,7 +676,7 @@ changes:
description: The `file` parameter can be a file descriptor now.
-->

* `file` {string|Buffer|number} filename or file descriptor
* `file` {string|Buffer|URL|number} filename or file descriptor
* `data` {string|Buffer}
* `options` {Object|string}
* `encoding` {string|null} **Default:** `'utf8'`
Expand Down Expand Up @@ -1487,7 +1487,7 @@ changes:
it will emit a deprecation warning.
-->

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `mode` {integer}
* `callback` {Function}
* `err` {Error}
Expand All @@ -1502,7 +1502,7 @@ Only available on macOS.
deprecated: v0.4.7
-->

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `mode` {integer}

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

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `uid` {integer}
* `gid` {integer}
* `callback` {Function}
Expand All @@ -1531,7 +1531,7 @@ to the completion callback.
deprecated: v0.4.7
-->

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `uid` {integer}
* `gid` {integer}

Expand Down Expand Up @@ -2396,7 +2396,7 @@ changes:
it will emit a deprecation warning.
-->

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

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `len` {integer} **Default:** `0`

Synchronous truncate(2). Returns `undefined`. A file descriptor can also be
Expand Down Expand Up @@ -2456,7 +2456,7 @@ Synchronous unlink(2). Returns `undefined`.
added: v0.1.31
-->

* `filename` {string|Buffer}
* `filename` {string|Buffer|URL}
* `listener` {Function} Optional, a listener previously attached using
`fs.watchFile()`

Expand Down Expand Up @@ -2816,7 +2816,7 @@ changes:
description: The `file` parameter can be a file descriptor now.
-->

* `file` {string|Buffer|integer} filename or file descriptor
* `file` {string|Buffer|URL|integer} filename or file descriptor
* `data` {string|Buffer|Uint8Array}
* `options` {Object|string}
* `encoding` {string|null} **Default:** `'utf8'`
Expand Down Expand Up @@ -2867,7 +2867,7 @@ changes:
description: The `file` parameter can be a file descriptor now.
-->

* `file` {string|Buffer|integer} filename or file descriptor
* `file` {string|Buffer|URL|integer} filename or file descriptor
* `data` {string|Buffer|Uint8Array}
* `options` {Object|string}
* `encoding` {string|null} **Default:** `'utf8'`
Expand Down

0 comments on commit af88c0f

Please sign in to comment.