diff --git a/package-lock.json b/package-lock.json index 680a5c3..e91346c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/package.json b/package.json index 095e754..83a648c 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,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": { diff --git a/src/y-webrtc.js b/src/y-webrtc.js index 8845a97..c587584 100644 --- a/src/y-webrtc.js +++ b/src/y-webrtc.js @@ -544,12 +544,12 @@ export class WebrtcProvider extends Observable { * @param {string} roomName * @param {Y.Doc} doc * @param {Object} [opts] - * @param {Array?} [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} [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,