masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
14 lines (13 loc) • 465 B
TypeScript
import { type Filter } from "../v2/filter.js";
/**
* Represents a filter whose keywords matched a given status.
* @see https://docs.joinmastodon.org/entities/FilterResult/
*/
export interface FilterResult {
/** The filter that was matched. */
filter: Filter;
/** The keyword within the filter that was matched. */
keywordMatches: string[] | null;
/** The status ID within the filter that was matched. */
statusMatches: string[] | null;
}