From 019f28ff1ffddfcdc428d1de5ecd98648057a2ab Mon Sep 17 00:00:00 2001 From: Isaiah Thomason <47364027+ITenthusiasm@users.noreply.github.com> Date: Sun, 14 Jul 2024 09:20:58 -0400 Subject: [PATCH] [minor] Improve JSDoc-inferred types (#2242) --- lib/sender.js | 2 +- lib/stream.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sender.js b/lib/sender.js index ee16cea5a..a8b1da3a9 100644 --- a/lib/sender.js +++ b/lib/sender.js @@ -551,7 +551,7 @@ class Sender { /** * Sends a frame. * - * @param {Buffer[]} list The frame to send + * @param {(Buffer | String)[]} list The frame to send * @param {Function} [cb] Callback * @private */ diff --git a/lib/stream.js b/lib/stream.js index 230734b79..4c58c911b 100644 --- a/lib/stream.js +++ b/lib/stream.js @@ -1,5 +1,7 @@ +/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^WebSocket$" }] */ 'use strict'; +const WebSocket = require('./websocket'); const { Duplex } = require('stream'); /**