From aa6b603eca0ff38afa73586fae63b422df6599eb Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 21 Jan 2023 23:44:19 +0100 Subject: [PATCH] refactor: add return type --- components/conversation/ConversationPaginator.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/conversation/ConversationPaginator.vue b/components/conversation/ConversationPaginator.vue index d69d5ea8..e41292c4 100644 --- a/components/conversation/ConversationPaginator.vue +++ b/components/conversation/ConversationPaginator.vue @@ -5,7 +5,7 @@ const { paginator } = defineProps<{ paginator: Paginator }>() -function preprocess(items: mastodon.v1.Conversation[]) { +function preprocess(items: mastodon.v1.Conversation[]): mastodon.v1.Conversation[] { return items.filter(items => !items.lastStatus?.filtered?.find( filter => filter.filter.filterAction === 'hide' && filter.filter.context.includes('thread'), ))