]>
git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/data/types.d.ts
title: string;
ttl: number;
updated_at: number;
- tags: Tag[];
- posts: Post[];
- forum: Forum;
+ forum_id: string;
+ forum?: Forum;
+ posts?: Post[];
+ tags?: Tag[];
};
export type Post = {
created_at: number;
title: string;
text: string;
- topic: Topic;
- author: Author;
+ topic_id: string;
+ topic?: Topic;
+ author_id: string;
+ author?: User;
};
export type Tag = {
- id: string;
- weight: number;
- topics: Topic[];
+ tag: string;
+ count: number;
};
export type Forum = {
topics: Topic[];
};
-export type Author = {
+export type User = {
id: string;
handle: string;
};