diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-27 21:04:30 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-27 21:04:30 -0500 |
commit | 2e84441e6635b42065ef646238a6c95aea207548 (patch) | |
tree | 53b7db65bb5567e13d9c24a6364cde49224af6a4 /ui/src/components/inbox.tsx | |
parent | 8cfd5f9266a0a93dc47ec2ab6060ee0435276aba (diff) |
Strictly typing websocket forms.
Diffstat (limited to 'ui/src/components/inbox.tsx')
-rw-r--r-- | ui/src/components/inbox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index ba5cc6ad..41c1ce60 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -38,6 +38,8 @@ enum UnreadType { Messages, } +type ReplyType = Comment | PrivateMessageI; + interface InboxState { unreadOrAll: UnreadOrAll; unreadType: UnreadType; @@ -186,7 +188,7 @@ export class Inbox extends Component<any, InboxState> { } all() { - let combined: Array<Comment | PrivateMessageI> = []; + let combined: Array<ReplyType> = []; combined.push(...this.state.replies); combined.push(...this.state.mentions); |