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 committed Jan 23, 2018
1 parent 9870b53 commit 9145388
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 @@ -843,7 +843,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 @@ -898,7 +898,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 @@ -1709,7 +1709,7 @@ changes:
it will emit a deprecation warning.
-->

* `path` {string|Buffer}
* `path` {string|Buffer|URL}
* `mode` {integer}
* `callback` {Function}
* `err` {Error}
Expand All @@ -1724,7 +1724,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 @@ -1739,7 +1739,7 @@ changes:
it will emit a deprecation warning.
-->

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

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

Expand Down Expand Up @@ -2694,7 +2694,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 @@ -2711,7 +2711,7 @@ being thrown in the future.
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 @@ -2760,7 +2760,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 @@ -3120,7 +3120,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 @@ -3171,7 +3171,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 9145388

Please sign in to comment.