fix typing issues

This commit is contained in:
Kevin Jahns 2023-01-16 16:59:47 +01:00
parent 4685d36f0c
commit 88baab219a
2 changed files with 833 additions and 451 deletions

1266
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -536,6 +536,16 @@ export class SignalingConn extends ws.WebsocketClient {
}
}
/**
* @typedef {Object} ProviderOptions
* @property {Array<string>} [signaling]
* @property {string} [password]
* @property {awarenessProtocol.Awareness} [awareness]
* @property {number} [maxConns]
* @property {boolean} [filterBcConns]
* @property {any} [peerOpts]
*/
/**
* @extends Observable<string>
*/
@ -543,13 +553,7 @@ export class WebrtcProvider extends Observable {
/**
* @param {string} roomName
* @param {Y.Doc} doc
* @param {Object} [opts]
* @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 {ProviderOptions?} opts
*/
constructor (
roomName,