Skip to content

Commit 298969e

Browse files
y-hsgwaduh95
authored andcommitted
doc: update position type to integer | null in fs
PR-URL: #57745 Reviewed-By: LiviaMedeiros Reviewed-By: James M Snell
1 parent a9d28e2 commit 298969e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/fs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ added:
740740
* `options` {Object}
741741
* `offset` {integer} **Default:** `0`
742742
* `length` {integer} **Default:** `buffer.byteLength - offset`
743-
* `position` {integer} **Default:** `null`
743+
* `position` {integer|null} **Default:** `null`
744744
* Returns: {Promise}
745745
746746
Write `buffer` to the file.
@@ -4984,7 +4984,7 @@ added:
49844984
* `options` {Object}
49854985
* `offset` {integer} **Default:** `0`
49864986
* `length` {integer} **Default:** `buffer.byteLength - offset`
4987-
* `position` {integer} **Default:** `null`
4987+
* `position` {integer|null} **Default:** `null`
49884988
* `callback` {Function}
49894989
* `err` {Error}
49904990
* `bytesWritten` {integer}
@@ -6515,7 +6515,7 @@ added:
65156515
* `options` {Object}
65166516
* `offset` {integer} **Default:** `0`
65176517
* `length` {integer} **Default:** `buffer.byteLength - offset`
6518-
* `position` {integer} **Default:** `null`
6518+
* `position` {integer|null} **Default:** `null`
65196519
* Returns: {number} The number of bytes written.
65206520
65216521
For detailed information, see the documentation of the asynchronous version of

0 commit comments

Comments
 (0)