fix types for WebrtcProvider opts as each is optional

This commit is contained in:
Will Hawker 2021-06-08 21:21:06 +01:00
parent b6c6d4890e
commit 2f1b3f4307
No known key found for this signature in database
GPG key ID: EF9C353ECBE490FA

View file

@ -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,