Fakultas Ilmu Komputer UI

Commit 57822efe authored by Ahmad Izzudin Alifyandra's avatar Ahmad Izzudin Alifyandra
Browse files

Merge branch 'add-types-for-threads-firestore' into 'master'

feat: add types for threads and dependants

See merge request !152
parents 9b50d8a3 b225e68e
Pipeline #88812 passed with stage
in 9 minutes and 48 seconds
import firebase from "firebase/app";
export type IThread = {
id?: string;
timestamp: firebase.firestore.Timestamp;
ecosystemId: string;
userId: string;
title: string;
content: string;
pic: string;
likeCount: number;
commentCount: number;
};
// Subcollection of thread
export type IThreadLike = {
// ID Format: <threadId_userId>
id?: string;
threadId: string;
userId: string;
};
import firebase from "firebase/app";
export type IThreadComment = {
id?: string;
timestamp: firebase.firestore.Timestamp;
threadId: string;
userId: string;
userName: string;
content: string;
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment