UNPKG

masto

Version:

Mastodon API client for JavaScript, TypeScript, Node.js, browsers

19 lines (18 loc) 765 B
import { type Suggestion } from "../../entities/v1/index.js"; import { type Method } from "../../method.js"; import { type Paginator } from "../../paginator.js"; export interface ListSuggestionsParams { /** Integer. Maximum number of results to return. Defaults to 40. */ readonly limit?: number | null; } export interface SuggestionsResource { /** * View follow suggestions. * Accounts that are promoted by staff, or that the user has had past positive interactions with, but is not yet following. * @param params * @returns */ list: Method<Paginator<Suggestion[], ListSuggestionsParams>, ListSuggestionsParams>; } /** @deprecated Use SuggestionsResource instead. */ export type SuggestionRepository = SuggestionsResource;