Skip to content

Commit b1cc099

Browse files
y-hsgwaduh95
authored andcommitted
doc: update position type to integer | null in fs
PR-URL: #57745 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d32f1e5 commit b1cc099

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
@@ -741,7 +741,7 @@ added:
741741
* `options` {Object}
742742
* `offset` {integer} **Default:** `0`
743743
* `length` {integer} **Default:** `buffer.byteLength - offset`
744-
* `position` {integer} **Default:** `null`
744+
* `position` {integer|null} **Default:** `null`
745745
* Returns: {Promise}
746746
747747
Write `buffer` to the file.
@@ -4989,7 +4989,7 @@ added:
49894989
* `options` {Object}
49904990
* `offset` {integer} **Default:** `0`
49914991
* `length` {integer} **Default:** `buffer.byteLength - offset`
4992-
* `position` {integer} **Default:** `null`
4992+
* `position` {integer|null} **Default:** `null`
49934993
* `callback` {Function}
49944994
* `err` {Error}
49954995
* `bytesWritten` {integer}
@@ -6521,7 +6521,7 @@ added:
65216521
* `options` {Object}
65226522
* `offset` {integer} **Default:** `0`
65236523
* `length` {integer} **Default:** `buffer.byteLength - offset`
6524-
* `position` {integer} **Default:** `null`
6524+
* `position` {integer|null} **Default:** `null`
65256525
* Returns: {number} The number of bytes written.
65266526
65276527
For detailed information, see the documentation of the asynchronous version of

0 commit comments

Comments
 (0)