refactor: add return type

This commit is contained in:
Ayo 2023-01-21 23:44:19 +01:00
parent 979c97306b
commit aa6b603eca

View file

@ -5,7 +5,7 @@ const { paginator } = defineProps<{
paginator: Paginator<mastodon.v1.Conversation[], mastodon.DefaultPaginationParams> paginator: Paginator<mastodon.v1.Conversation[], mastodon.DefaultPaginationParams>
}>() }>()
function preprocess(items: mastodon.v1.Conversation[]) { function preprocess(items: mastodon.v1.Conversation[]): mastodon.v1.Conversation[] {
return items.filter(items => !items.lastStatus?.filtered?.find( return items.filter(items => !items.lastStatus?.filtered?.find(
filter => filter.filter.filterAction === 'hide' && filter.filter.context.includes('thread'), filter => filter.filter.filterAction === 'hide' && filter.filter.context.includes('thread'),
)) ))