Skip to content
Permalink
Newer
Older
100644 78 lines (69 sloc) 1.5 KB
October 19, 2023 16:49
1
declare global {
October 19, 2023 16:49
2
module "*.css";
3
October 19, 2023 16:49
4
interface Env {
5
ASSETS: Fetcher;
October 19, 2023 16:49
6
D1: D1Database;
October 19, 2023 16:49
7
DATA: KVNamespace;
8
[k: string]: string;
9
}
10
11
type RequestContext = EventContext<Env, string, { [k: string]: any }>;
October 19, 2023 16:49
12
13
interface EmotionCriticalToChunks {
14
html: string;
15
styles: { key: string; ids: string[]; css: string }[];
October 19, 2023 16:49
16
}
October 19, 2023 16:49
17
18
interface EmotionServer {
19
constructStyleTagsFromChunks: (
October 19, 2023 16:50
20
criticalData: EmotionCriticalToChunks,
October 19, 2023 16:49
21
) => string;
22
extractCriticalToChunks: (html: string) => EmotionCriticalToChunks;
23
}
24
October 19, 2023 16:49
25
interface AppealCardProps {
26
ban_reason: string;
October 19, 2023 16:49
27
created_at: number;
October 19, 2023 16:49
28
id: string;
29
learned: string;
30
reason_for_unban: string;
October 19, 2023 16:49
31
user: {
32
id: string;
33
username: string;
October 19, 2023 16:49
35
}
36
October 19, 2023 16:49
37
interface GameAppealProps {
October 19, 2023 16:49
38
created_at: number;
October 19, 2023 16:49
39
reasonForUnban: string;
40
roblox_id: number;
41
roblox_username: string;
42
whatHappened: string;
43
}
44
October 19, 2023 16:50
45
interface InactivityNoticeProps {
46
created_at: number;
47
decisions?: {
48
accepted: boolean;
49
department: string;
50
}[];
October 19, 2023 16:50
51
departments: string[];
52
end: string;
53
id: string;
October 19, 2023 16:50
54
reason: string;
55
start: string;
56
user: {
57
id: string;
58
username: string;
59
};
60
}
61
October 19, 2023 16:49
62
interface ReportCardProps {
October 19, 2023 16:50
63
attachments: string[];
64
attachments_loading?: boolean;
October 19, 2023 16:49
65
created_at: number;
October 19, 2023 16:50
66
description?: string;
October 19, 2023 16:49
67
id: string;
68
open: boolean;
October 19, 2023 16:49
69
target_ids: number[];
70
target_usernames: string[];
October 19, 2023 16:49
71
user?: {
72
id: string;
73
username: string;
October 19, 2023 16:49
75
}
October 19, 2023 16:49
76
}
77
78
export {};