We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61676a8 commit 5ba7c13Copy full SHA for 5ba7c13
src/y-webrtc.js
@@ -179,7 +179,7 @@ export class WebrtcConn {
179
this.connected = false
180
this.synced = false
181
/**
182
- * @type {any}
+ * @type {import('simple-peer').Instance}
183
*/
184
this.peer = new Peer({ initiator, ...room.provider.peerOpts })
185
this.peer.on('signal', signal => {
@@ -566,7 +566,7 @@ export class SignalingConn extends ws.WebsocketClient {
566
* @property {awarenessProtocol.Awareness} [awareness]
567
* @property {number} [maxConns]
568
* @property {boolean} [filterBcConns]
569
- * @property {any} [peerOpts]
+ * @property {import('simple-peer').SimplePeer['config']} [peerOpts]
570
571
572
0 commit comments