import type { CommentView } from "./CommentView"; import type { CommunityView } from "./CommunityView"; import type { MultiCommunityView } from "./MultiCommunityView"; import type { PaginationCursor } from "./PaginationCursor"; 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.search_term` 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?: PaginationCursor; next_page?: PaginationCursor; };