From 5fdce3f3ca95d7e5baf76934d4df40a193159c87 Mon Sep 17 00:00:00 2001 From: Arham Wani Date: Mon, 10 Aug 2026 13:30:27 +0530 Subject: [PATCH] doc: add null to fs.read position type The buffer/options overload gives position a default of null but omitted null from its type. The adjacent options-only overload includes it, and the implementation accepts it to read from the current file position. Make the type and default agree. Signed-off-by: Arham Wani --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 21eaa6af0e1c..ad7728fe8732 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4271,7 +4271,7 @@ added: * `options` {Object} * `offset` {integer} **Default:** `0` * `length` {integer} **Default:** `buffer.byteLength - offset` - * `position` {integer|bigint} **Default:** `null` + * `position` {integer|bigint|null} **Default:** `null` * `callback` {Function} * `err` {Error} * `bytesRead` {integer}