-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtypings.d.ts
81 lines (69 loc) · 1.28 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
declare module '*.css';
declare module '*.less';
declare module '*.png';
declare module '*.svg' {
export function ReactComponent(
props: React.SVGProps<SVGSVGElement>,
): React.ReactElement;
const url: string;
export default url;
}
interface Window {
initialState: InitialState;
}
interface QiankunApp {
name: string;
type: string;
path: string;
entry: string;
order: number;
remark?: string;
locale?: string;
}
interface InitialState {
user?: UserModel;
token?: string;
}
interface UserModel extends AuthorModel {
id: string;
// loginname: string;
// avatar_url: string;
}
interface TopicModel {
id: string;
author_id: string;
tab: string;
content: string;
title: string;
last_reply_at: Date;
good: boolean;
top: boolean;
reply_count: number;
visit_count: number;
create_at: Date;
author: AuthorModel;
replies: ReplyModel[];
}
interface ReplyModel {
id: string;
author: AuthorModel;
content: string;
ups: string[];
create_at: Date;
reply_id?: string;
is_uped: boolean;
}
interface AuthorModel {
id?: string;
loginname: string;
avatar_url: string;
}
interface MessageModel {
id: string;
type: string;
has_read: boolean;
create_at: Date;
author: AuthorModel;
topic: TopicModel;
reply: ReplyModel;
}