masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
22 lines (21 loc) • 572 B
TypeScript
import { type Status } from "./status.js";
export interface QuoteStateRegistry {
pending: never;
accepted: never;
rejected: never;
revoked: never;
deleted: never;
unauthorized: never;
blocked_account: never;
blocked_domain: never;
muted_account: never;
}
export type QuoteState = keyof QuoteStateRegistry;
/**
* Represents a quote or a quote placeholder, with the current authorization status.
* @see https://docs.joinmastodon.org/entities/Quote
*/
export interface Quote {
state: QuoteState;
quotedStatus?: Status | null;
}