-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathtypes.ts
49 lines (46 loc) · 788 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
48
49
export interface ConversationProps {
id: string;
model?: string;
content: {
title?: string;
avatarUrl: string;
model?: string;
items: {
from: "human" | "gpt";
value: string;
}[];
};
comments: CommentProps[];
views: number;
}
export interface ConversationMeta {
id: string;
title: string;
avatar: string;
creator: {
name: string;
image: string;
};
saves: number;
comments: number;
views: number;
createdAt: Date;
}
export interface Session {
user: {
email?: string | null;
id?: string | null;
name?: string | null;
};
}
export interface CommentProps {
id: string;
content: string;
position: number;
user: {
name: string;
username: string;
image: string;
};
createdAt: Date;
}