From 4d70a2c344c982d3c2f60b06ffb026dd3f6046b4 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 c4409d51b9dac6..67bdf668536545 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -248,6 +248,9 @@ class FileHandle extends EventEmitterMixin(JSTransferable) { /** * @typedef {import('../webstreams/readablestream').ReadableStream * } ReadableStream + * @param {{ + * type?: string; + * }} [options] * @returns {ReadableStream} */ readableWebStream(options = kEmptyObject) {