diff options
author | Vitaly Takmazov | 2019-08-14 11:34:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 864e079847207a9c8072ec5c425e28fd1d742dc9 (patch) | |
tree | c46be1489bf119a5e2631310edd03895d36e774c /vnext | |
parent | 2974055bbad6b16d2f7936c141d24966ad2ae287 (diff) |
jsdoc fixes
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/src/App.js | 2 | ||||
-rw-r--r-- | vnext/src/api/index.js | 6 |
2 files changed, 4 insertions, 4 deletions
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 */ /** |