Skip to content

Commit ca5b827

Browse files
ruyadornomarco-ippolito
authored andcommitted
fs: fix read / readSync positional offset types
This changeset fixes the types in comments to match the implementation. PR-URL: #52603 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 02a83d8 commit ca5b827

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/fs.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,11 @@ function openAsBlob(path, options = kEmptyObject) {
599599
* Reads file from the specified `fd` (file descriptor).
600600
* @param {number} fd
601601
* @param {Buffer | TypedArray | DataView} buffer
602-
* @param {number} offsetOrOptions
602+
* @param {number | {
603+
* offset?: number;
604+
* length?: number;
605+
* position?: number | bigint | null;
606+
* }} [offsetOrOptions]
603607
* @param {number} length
604608
* @param {number | bigint | null} position
605609
* @param {(
@@ -692,7 +696,7 @@ ObjectDefineProperty(read, kCustomPromisifyArgsSymbol,
692696
* specified `fd` (file descriptor).
693697
* @param {number} fd
694698
* @param {Buffer | TypedArray | DataView} buffer
695-
* @param {{
699+
* @param {number | {
696700
* offset?: number;
697701
* length?: number;
698702
* position?: number | bigint | null;

0 commit comments

Comments
 (0)