Skip to content

Commit

Permalink
Merge pull request #27 from whawker/optional-options-for-types
Browse files Browse the repository at this point in the history
Fix types for WebrtcProvider opts as each is optional
  • Loading branch information
dmonad authored Nov 10, 2021
2 parents e1ee781 + 2f1b3f4 commit 61df807
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/y-webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ export class WebrtcProvider extends Observable {
* @param {string} roomName
* @param {Y.Doc} doc
* @param {Object} [opts]
* @param {Array<string>} [opts.signaling]
* @param {Array<string>?} [opts.signaling]
* @param {string?} [opts.password]
* @param {awarenessProtocol.Awareness} [opts.awareness]
* @param {number} [opts.maxConns]
* @param {boolean} [opts.filterBcConns]
* @param {any} [opts.peerOpts]
* @param {awarenessProtocol.Awareness?} [opts.awareness]
* @param {number?} [opts.maxConns]
* @param {boolean?} [opts.filterBcConns]
* @param {any?} [opts.peerOpts]
*/
constructor (
roomName,
Expand Down

0 comments on commit 61df807

Please sign in to comment.