diff options
author | Vitaly Takmazov | 2019-11-14 14:32:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 6ecde9590b68189ca96fd0f2afccbd60d44f5950 (patch) | |
tree | fc7c60f76858599536fd8e0a5b4d2bb7e1fcb43b /vnext/src/ui/Message.js | |
parent | 546a94714b993e5fea838ef7326ed962f7cbb3ef (diff) |
Fix some jsdoc definitions
Diffstat (limited to 'vnext/src/ui/Message.js')
-rw-r--r-- | vnext/src/ui/Message.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js index 51ff12ec..83c6fcab 100644 --- a/vnext/src/ui/Message.js +++ b/vnext/src/ui/Message.js @@ -13,7 +13,7 @@ import './Message.css'; /** * Message component - * @param {{data: import('../api').Message, visitor: import('../api').User, children: Element}} props + * @param {{data: import('../api').Message, visitor: import('../api').User, children: React.ReactElement}} props */ export default function Message({ data, visitor, children }) { const isCode = (data.tags || []).indexOf('code') >= 0; @@ -123,6 +123,7 @@ function Tags({ data, user }) { { data.map(tag => { return (<Link key={tag} to={{ pathname: `/${user.uname}`, search: `?tag=${tag}` }} title={tag}>{tag}</Link>); + // @ts-ignore }).reduce((prev, curr) => [prev, ', ', curr]) } </div> |