Merge pull request #27 from whawker/optional-options-for-types
Fix types for WebrtcProvider opts as each is optional
This commit is contained in:
commit
61df807f28
1 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue