Merge pull request #27 from whawker/optional-options-for-types

Fix types for WebrtcProvider opts as each is optional
This commit is contained in:
Kevin Jahns 2021-11-10 10:03:06 +01:00 committed by GitHub
commit 61df807f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -531,12 +531,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,