Add: Post Metrics

This commit is contained in:
2024-05-14 14:01:21 +03:00
parent eb7271a0c3
commit 5eb5f2d5ff
3 changed files with 62 additions and 0 deletions
+13
View File
@@ -39,3 +39,16 @@ export type CommentTreeNode = {
parent: Comment,
children: (CommentTreeNode | number)[]
};
export type PostMetrics = {
post: Post,
commentCount: bigint,
userCount: bigint,
latestActivity: Date,
rating: Rating,
score: bigint,
engagement: bigint,
age: number,
relevancy: number
};