X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/d197e31bf0437889f792e013df32b868fffc35d9..HEAD:/src/lib/data/types.d.ts diff --git a/src/lib/data/types.d.ts b/src/lib/data/types.d.ts index 2498bf7..e1f6f17 100644 --- a/src/lib/data/types.d.ts +++ b/src/lib/data/types.d.ts @@ -8,9 +8,10 @@ export type Topic = { 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 = { @@ -18,14 +19,15 @@ 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 = { @@ -36,7 +38,7 @@ export type Forum = { topics: Topic[]; }; -export type Author = { +export type User = { id: string; handle: string; };