Include open property on appeals

This commit is contained in:
2023-10-20 12:35:51 -04:00
parent a9f04b99d1
commit 4a62ce5c05
4 changed files with 11 additions and 12 deletions

14
index.d.ts vendored
View File

@ -5,28 +5,18 @@ declare global {
ASSETS: Fetcher;
D1: D1Database;
DATA: KVNamespace;
[k: string]: string;
}
type RequestContext = EventContext<Env, string, { [k: string]: any }>;
interface EmotionCriticalToChunks {
html: string;
styles: { key: string; ids: string[]; css: string }[];
}
interface EmotionServer {
constructStyleTagsFromChunks: (
criticalData: EmotionCriticalToChunks,
) => string;
extractCriticalToChunks: (html: string) => EmotionCriticalToChunks;
}
interface AppealCardProps {
ban_reason: string;
created_at: number;
id: string;
learned: string;
open?: boolean;
reason_for_unban: string;
user: {
id: string;