Skip to content

Commit 019f28f

Browse files
authored
[minor] Improve JSDoc-inferred types (#2242)
1 parent bfe1b2a commit 019f28f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/sender.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ class Sender {
551551
/**
552552
* Sends a frame.
553553
*
554-
* @param {Buffer[]} list The frame to send
554+
* @param {(Buffer | String)[]} list The frame to send
555555
* @param {Function} [cb] Callback
556556
* @private
557557
*/

lib/stream.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^WebSocket$" }] */
12
'use strict';
23

4+
const WebSocket = require('./websocket');
35
const { Duplex } = require('stream');
46

57
/**

0 commit comments

Comments
 (0)