-
Notifications
You must be signed in to change notification settings - Fork 0
/
typings.d.ts
53 lines (49 loc) · 1.01 KB
/
typings.d.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
50
51
52
53
declare module "*.png";
declare module "*.jpg";
declare module "*.jpeg";
declare module "*.gif";
declare module "*.webp";
declare module "*.svg";
declare module "*.json";
type ArticleComment = {
userName: string;
avatarUrl: string;
message: string;
dateTime: string;
location: string;
favoriteCount: number;
isFavorite: boolean;
children?: ArticleComment[];
}
type Article = {
id: number;
title: string;
desc: string;
tag: string[];
dateTime: string;
location: string;
userId: number;
userName: string;
isFollow: boolean;
avatarUrl: string;
images: string[];
favoriteCount: number;
collectionCount: number;
isFavorite: boolean;
isCollection: boolean;
comments?: ArticleComment[];
}
type ArticleInList = {
id: number;
title: string;
userName: string;
avatarUrl: string;
favoriteCount: number;
isFavorite: boolean;
image: string;
}
type Category = {
name: string;
default: boolean;
isAdd: boolean;
}