import type { CommentView } from "./CommentView"; import type { CommunityView } from "./CommunityView"; import type { MultiCommunityView } from "./MultiCommunityView"; import type { PersonView } from "./PersonView"; import type { PostView } from "./PostView"; import type { ResolveObjectView } from "./ResolveObjectView"; /** * The search response, containing lists of the return type possibilities */ export type SearchResponse = { /** * If `Search.q` contains an ActivityPub ID (eg `https://lemmy.world/comment/1`) or an * identifier (eg `!fediverse@lemmy.ml`) then this field contains the resolved object. * It should always be shown above other search results. */ resolve?: ResolveObjectView; comments: Array; posts: Array; communities: Array; persons: Array; multi_communities: Array; prev_page?: string; next_page?: string; };