Skip to content

Commit b4f48dd

Browse files
Merge pull request #54 from sparcs-kaist/feat/PostWrite
Migrate Type : Notification
2 parents 64bbd21 + 58c220e commit b4f48dd

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/lib/types/notification.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/* eslint-disable camelcase */
2+
type RelatedArticle = {
3+
comment_count: number,
4+
commented_at: string,
5+
content_updated_at: string,
6+
created_at: string,
7+
created_by: number
8+
deleted_at: string
9+
hidden_at: string
10+
hit_count: number,
11+
id: number,
12+
name_type: number,
13+
is_content_sexual: boolean,
14+
is_content_social: boolean,
15+
negative_vote_count: number,
16+
parent_board: number,
17+
parent_topic: any,
18+
positive_vote_count: number,
19+
report_count: number,
20+
title: string
21+
updated_at: string
22+
url: string
23+
}
24+
25+
type RelatedComment = {
26+
content: string,
27+
created_at: string,
28+
created_by: number,
29+
deleted_at: string,
30+
hidden_at: string,
31+
id: number,
32+
name_type: number,
33+
negative_vote_count: number,
34+
parent_article: Object,
35+
parent_comment: number,
36+
positive_vote_count: number,
37+
report_count: number,
38+
updated_at: string,
39+
}
40+
41+
export type Notification = {
42+
content: string,
43+
created_at: string,
44+
deleted_at: string,
45+
id: number,
46+
is_read: boolean,
47+
related_article: RelatedArticle,
48+
related_comment?: RelatedComment,
49+
title: string,
50+
type: 'article_commented' | 'comment_commented',
51+
updated_at: string
52+
}

0 commit comments

Comments
 (0)