Skip to content

Commit 5ba7c13

Browse files
committed
types: Improved the type related to simple-peer
1 parent 61676a8 commit 5ba7c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/y-webrtc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class WebrtcConn {
179179
this.connected = false
180180
this.synced = false
181181
/**
182-
* @type {any}
182+
* @type {import('simple-peer').Instance}
183183
*/
184184
this.peer = new Peer({ initiator, ...room.provider.peerOpts })
185185
this.peer.on('signal', signal => {
@@ -566,7 +566,7 @@ export class SignalingConn extends ws.WebsocketClient {
566566
* @property {awarenessProtocol.Awareness} [awareness]
567567
* @property {number} [maxConns]
568568
* @property {boolean} [filterBcConns]
569-
* @property {any} [peerOpts]
569+
* @property {import('simple-peer').SimplePeer['config']} [peerOpts]
570570
*/
571571

572572
/**

0 commit comments

Comments
 (0)