From 747097af03e422c72c2fe0065637e59a1685d219 Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 23 Oct 2022 21:34:48 +0300 Subject: nearly completed, forgot to make a repo --- src/models/Thread.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/models/Thread.ts (limited to 'src/models/Thread.ts') diff --git a/src/models/Thread.ts b/src/models/Thread.ts new file mode 100644 index 0000000..5960e11 --- /dev/null +++ b/src/models/Thread.ts @@ -0,0 +1,17 @@ +export type Comment = { + id: string; + timestamp: number; + content: string; + image: string; + imagetype: string //image or video +}; + +export type Thread = { + id: string; + timestamp: number; + title: string; + content: string; + comments: Comment[]; + image: string; + imagetype: string; //image or video +}; -- cgit v1.2.3