diff --git a/lib/fs.js b/lib/fs.js index e857ac47f45c81..1b4647498fc642 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -599,7 +599,11 @@ function openAsBlob(path, options = kEmptyObject) { * Reads file from the specified `fd` (file descriptor). * @param {number} fd * @param {Buffer | TypedArray | DataView} buffer - * @param {number} offsetOrOptions + * @param {number | { + * offset?: number; + * length?: number; + * position?: number | bigint | null; + * }} [offsetOrOptions] * @param {number} length * @param {number | bigint | null} position * @param {( @@ -693,7 +697,7 @@ ObjectDefineProperty(read, kCustomPromisifyArgsSymbol, * specified `fd` (file descriptor). * @param {number} fd * @param {Buffer | TypedArray | DataView} buffer - * @param {{ + * @param {number | { * offset?: number; * length?: number; * position?: number | bigint | null;