-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
48 lines (41 loc) · 913 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export interface Question {
question: string,
options: [string, string, string, string],
hasInput: boolean
}
export interface QandA {
questionLinkID: string,
question: string,
answer: string,
questionBy: string
}
export interface DailyAnswer {
questionID: number,
userID: string,
coupleID: number,
answer: string,
day: Date
}
export interface Partner { name: string, email: string, image: string }
export interface Stats {
currentStreak: number;
responses: number;
answered: number;
partner: Partner | null,
sendRequest: string,
recievedRequest: string,
name: string,
image: string,
email: string,
hasPartner: boolean
}
export interface CreateQuestion {
question: string,
deleted: boolean,
hasInput: boolean,
options: string[],
}
export interface Notifs {
response: Boolean,
request: Boolean
}