From 2f1b3f4307e3398c6c770ceecb46f6cb6a1e7cbf Mon Sep 17 00:00:00 2001 From: Will Hawker Date: Tue, 8 Jun 2021 21:21:06 +0100 Subject: [PATCH] fix types for WebrtcProvider opts as each is optional --- src/y-webrtc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/y-webrtc.js b/src/y-webrtc.js index 33422df..1c83cb6 100644 --- a/src/y-webrtc.js +++ b/src/y-webrtc.js @@ -530,12 +530,12 @@ export class WebrtcProvider extends Observable { * @param {string} roomName * @param {Y.Doc} doc * @param {Object} [opts] - * @param {Array} [opts.signaling] + * @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 {awarenessProtocol.Awareness?} [opts.awareness] + * @param {number?} [opts.maxConns] + * @param {boolean?} [opts.filterBcConns] + * @param {any?} [opts.peerOpts] */ constructor ( roomName,