fix typing issues
This commit is contained in:
parent
4685d36f0c
commit
88baab219a
2 changed files with 833 additions and 451 deletions
1266
package-lock.json
generated
1266
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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>
|
* @extends Observable<string>
|
||||||
*/
|
*/
|
||||||
|
@ -543,13 +553,7 @@ export class WebrtcProvider extends Observable {
|
||||||
/**
|
/**
|
||||||
* @param {string} roomName
|
* @param {string} roomName
|
||||||
* @param {Y.Doc} doc
|
* @param {Y.Doc} doc
|
||||||
* @param {Object} [opts]
|
* @param {ProviderOptions?} 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]
|
|
||||||
*/
|
*/
|
||||||
constructor (
|
constructor (
|
||||||
roomName,
|
roomName,
|
||||||
|
|
Loading…
Reference in a new issue