Skip to content

Commit

Permalink
Merge pull request #66 from croatialu/master
Browse files Browse the repository at this point in the history
types: Improved the type related to simple-peer
  • Loading branch information
dmonad authored Apr 28, 2024
2 parents 61676a8 + 5ba7c13 commit c411f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/y-webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class WebrtcConn {
this.connected = false
this.synced = false
/**
* @type {any}
* @type {import('simple-peer').Instance}
*/
this.peer = new Peer({ initiator, ...room.provider.peerOpts })
this.peer.on('signal', signal => {
Expand Down Expand Up @@ -566,7 +566,7 @@ export class SignalingConn extends ws.WebsocketClient {
* @property {awarenessProtocol.Awareness} [awareness]
* @property {number} [maxConns]
* @property {boolean} [filterBcConns]
* @property {any} [peerOpts]
* @property {import('simple-peer').SimplePeer['config']} [peerOpts]
*/

/**
Expand Down

0 comments on commit c411f1d

Please sign in to comment.