mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
24 lines
614 B
TypeScript
24 lines
614 B
TypeScript
import { type NostrEvent } from '@/deps.ts';
|
|
|
|
/** Ditto internal stats for the event's author. */
|
|
export interface AuthorStats {
|
|
followers_count: number;
|
|
following_count: number;
|
|
notes_count: number;
|
|
}
|
|
|
|
/** Ditto internal stats for the event. */
|
|
export interface EventStats {
|
|
replies_count: number;
|
|
reposts_count: number;
|
|
reactions_count: number;
|
|
}
|
|
|
|
/** Internal Event representation used by Ditto, including extra keys. */
|
|
export interface DittoEvent extends NostrEvent {
|
|
author?: DittoEvent;
|
|
author_stats?: AuthorStats;
|
|
event_stats?: EventStats;
|
|
d_author?: DittoEvent;
|
|
user?: DittoEvent;
|
|
}
|