Add: Post Metrics
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user