Merge pull request #38 from exuanbo/fix-generated-type
fix: incorrect generated type of `WebrtcProvider` constructor
This commit is contained in:
commit
4685d36f0c
3 changed files with 14 additions and 14 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -26,7 +26,7 @@
|
|||
"rollup-cli": "^1.0.9",
|
||||
"rollup-plugin-terser": "^5.3.1",
|
||||
"standard": "^14.3.4",
|
||||
"typescript": "^3.9.10",
|
||||
"typescript": "^4.4.4",
|
||||
"yjs": "^13.5.20"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -3581,9 +3581,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"version": "4.7.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
|
||||
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
@ -6581,9 +6581,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.9.10",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
|
||||
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
|
||||
"version": "4.7.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
|
||||
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
|
||||
"dev": true
|
||||
},
|
||||
"unbox-primitive": {
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
"rollup-cli": "^1.0.9",
|
||||
"rollup-plugin-terser": "^5.3.1",
|
||||
"standard": "^14.3.4",
|
||||
"typescript": "^3.9.10",
|
||||
"typescript": "^4.4.4",
|
||||
"yjs": "^13.5.20"
|
||||
},
|
||||
"peerDependenies": {
|
||||
|
|
|
@ -544,12 +544,12 @@ 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 {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 (
|
||||
roomName,
|
||||
|
|
Loading…
Reference in a new issue