fix types for WebrtcProvider opts as each is optional
This commit is contained in:
parent
b6c6d4890e
commit
2f1b3f4307
1 changed files with 5 additions and 5 deletions
|
@ -530,12 +530,12 @@ export class WebrtcProvider extends Observable {
|
||||||
* @param {string} roomName
|
* @param {string} roomName
|
||||||
* @param {Y.Doc} doc
|
* @param {Y.Doc} doc
|
||||||
* @param {Object} [opts]
|
* @param {Object} [opts]
|
||||||
* @param {Array<string>} [opts.signaling]
|
* @param {Array<string>?} [opts.signaling]
|
||||||
* @param {string?} [opts.password]
|
* @param {string?} [opts.password]
|
||||||
* @param {awarenessProtocol.Awareness} [opts.awareness]
|
* @param {awarenessProtocol.Awareness?} [opts.awareness]
|
||||||
* @param {number} [opts.maxConns]
|
* @param {number?} [opts.maxConns]
|
||||||
* @param {boolean} [opts.filterBcConns]
|
* @param {boolean?} [opts.filterBcConns]
|
||||||
* @param {any} [opts.peerOpts]
|
* @param {any?} [opts.peerOpts]
|
||||||
*/
|
*/
|
||||||
constructor (
|
constructor (
|
||||||
roomName,
|
roomName,
|
||||||
|
|
Loading…
Reference in a new issue