From 864e079847207a9c8072ec5c425e28fd1d742dc9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 14 Aug 2019 11:34:11 +0300 Subject: jsdoc fixes --- vnext/src/App.js | 2 +- vnext/src/api/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/App.js b/vnext/src/App.js index 41c8849b..80b235ac 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -58,7 +58,7 @@ export default function App() { if ('EventSource' in window) { const eventParams = { hash: hash }; let url = new URL(`https://juick.com/api/events?${qs.stringify(eventParams)}`); - es = new EventSource(url); + es = new EventSource(url.toString()); es.onopen = () => { console.log('online'); }; diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 50a9d5f9..f2112dda 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -11,7 +11,7 @@ const apiBaseUrl = 'https://juick.com'; /** * @typedef {Object} User - * @property {string} uname + * @property {string=} uname * @property {number} uid * @property {number=} unreadCount * @property {string=} avatar @@ -23,8 +23,8 @@ const apiBaseUrl = 'https://juick.com'; /** * @typedef {Object} SecureUserProperties - * @property {string} hash - * @property {Token[]} tokens + * @property {string=} hash + * @property {Token[]=} tokens */ /** -- cgit v1.2.3