From 0bb33deb11a1913f79a5d21fa1246035c97942ed Mon Sep 17 00:00:00 2001 From: Hyunjin Kim Date: Sun, 23 Jul 2023 17:05:05 +0900 Subject: [PATCH] typings: sync JSDoc with the actual implementation JSDoc comment did not match the actual implementation of `FileHandle#readableWebStream`. Refs: https://github.com/nodejs/node/pull/46933 PR-URL: https://github.com/nodejs/node/pull/48853 Reviewed-By: Antoine du Hamel Reviewed-By: Deokjin Kim --- lib/internal/fs/promises.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js index 74af3c9782b7a9..a63575664509df 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -255,6 +255,9 @@ class FileHandle extends EventEmitter { /** * @typedef {import('../webstreams/readablestream').ReadableStream * } ReadableStream + * @param {{ + * type?: string; + * }} [options] * @returns {ReadableStream} */ readableWebStream(options = kEmptyObject) {