diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Thread.ts | 17 |
1 files changed, 17 insertions, 0 deletions
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 +}; |