Skip to content

Commit 76e639c

Browse files
committed
squash: declare some values as nullable in fs.js
1 parent 18137b2 commit 76e639c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/fs.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ function openSync(path, flags, mode) {
597597
* @param {Buffer | TypedArray | DataView} buffer
598598
* @param {number} offset
599599
* @param {number} length
600-
* @param {number | bigint} position
600+
* @param {number | bigint | null} position
601601
* @param {(
602602
* err?: Error,
603603
* bytesRead?: number,
@@ -682,7 +682,7 @@ ObjectDefineProperty(read, internalUtil.customPromisifyArgs,
682682
* @param {{
683683
* offset?: number;
684684
* length?: number;
685-
* position?: number | bigint;
685+
* position?: number | bigint | null;
686686
* }} [offset]
687687
* @returns {number}
688688
*/
@@ -738,7 +738,7 @@ function readSync(fd, buffer, offset, length, position) {
738738
* and writes to an array of `ArrayBufferView`s.
739739
* @param {number} fd
740740
* @param {ArrayBufferView[]} buffers
741-
* @param {number} [position]
741+
* @param {number | null} [position]
742742
* @param {(
743743
* err?: Error,
744744
* bytesRead?: number,
@@ -773,7 +773,7 @@ ObjectDefineProperty(readv, internalUtil.customPromisifyArgs,
773773
* of `ArrayBufferView`s.
774774
* @param {number} fd
775775
* @param {ArrayBufferView[]} buffers
776-
* @param {number} [position]
776+
* @param {number | null} [position]
777777
* @returns {number}
778778
*/
779779
function readvSync(fd, buffers, position) {
@@ -796,7 +796,7 @@ function readvSync(fd, buffers, position) {
796796
* @param {Buffer | TypedArray | DataView | string | object} buffer
797797
* @param {number} [offset]
798798
* @param {number} [length]
799-
* @param {number} [position]
799+
* @param {number | null} [position]
800800
* @param {(
801801
* err?: Error,
802802
* bytesWritten?: number;
@@ -864,7 +864,7 @@ ObjectDefineProperty(write, internalUtil.customPromisifyArgs,
864864
* @param {Buffer | TypedArray | DataView | string} buffer
865865
* @param {number} [offset]
866866
* @param {number} [length]
867-
* @param {number} [position]
867+
* @param {number | null} [position]
868868
* @returns {number}
869869
*/
870870
function writeSync(fd, buffer, offset, length, position) {
@@ -902,7 +902,7 @@ function writeSync(fd, buffer, offset, length, position) {
902902
* specified `fd` (file descriptor).
903903
* @param {number} fd
904904
* @param {ArrayBufferView[]} buffers
905-
* @param {number} [position]
905+
* @param {number | null} [position]
906906
* @param {(
907907
* err?: Error,
908908
* bytesWritten?: number,
@@ -943,7 +943,7 @@ ObjectDefineProperty(writev, internalUtil.customPromisifyArgs, {
943943
* to the specified `fd` (file descriptor).
944944
* @param {number} fd
945945
* @param {ArrayBufferView[]} buffers
946-
* @param {number} [position]
946+
* @param {number | null} [position]
947947
* @returns {number}
948948
*/
949949
function writevSync(fd, buffers, position) {
@@ -1601,7 +1601,7 @@ function readlinkSync(path, options) {
16011601
* Creates the link called `path` pointing to `target`.
16021602
* @param {string | Buffer | URL} target
16031603
* @param {string | Buffer | URL} path
1604-
* @param {string} [type_]
1604+
* @param {string | null} [type_]
16051605
* @param {(err?: Error) => any} callback_
16061606
* @returns {void}
16071607
*/
@@ -1654,7 +1654,7 @@ function symlink(target, path, type_, callback_) {
16541654
* pointing to `target`.
16551655
* @param {string | Buffer | URL} target
16561656
* @param {string | Buffer | URL} path
1657-
* @param {string} [type]
1657+
* @param {string | null} [type]
16581658
* @returns {void}
16591659
*/
16601660
function symlinkSync(target, path, type) {

0 commit comments

Comments
 (0)