-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (52 loc) · 961 Bytes
/
types.ts
File metadata and controls
54 lines (52 loc) · 961 Bytes
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
50
51
52
53
54
export type User = {
id: string;
_id?: string;
name: string;
email: string;
image?: string;
professionalTitle?: string;
city?: string;
about?: string;
socialMedia?: {
twitter?: string;
linkedin?: string;
github?: string;
};
likedProjects: Project[];
coverImage?: string;
createdAt: string;
updatedAt: string;
followedBy: User[];
following: User[];
isFollowed?: boolean;
};
export type Project = {
_id: string;
id: string;
title: string;
description: string;
author: User;
cover?: string;
email: string;
status: string;
category: string;
techStack: string[];
keyFeatures: [
{
title: string;
description: string;
}
];
likedBy: User[];
likeCount: number;
gitHub?: string;
documentation?: string;
liveDemo?: string;
createdAt: string;
updatedAt: string;
isLikedByUser?: boolean;
};
export type ProfileComponentProps = {
user: User;
isOwner: boolean;
};