Actually modernize types this time

This commit is contained in:
regalijan 2023-10-19 16:49:53 -04:00
parent df1c21fa41
commit 589d07f1ac
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

14
index.d.ts vendored
View File

@ -27,12 +27,15 @@ declare global {
interface AppealCardProps { interface AppealCardProps {
ban_reason: string; ban_reason: string;
created_at: number; created_at: number;
discriminator: string;
id: string; id: string;
learned: string; learned: string;
reason_for_unban: string; reason_for_unban: string;
user: {
discriminator: string;
id: string;
username: string; username: string;
} }
}
interface GameAppealProps { interface GameAppealProps {
created_at: number; created_at: number;
@ -46,9 +49,16 @@ declare global {
attachment: string; attachment: string;
attachment_loading?: boolean; attachment_loading?: boolean;
created_at: number; created_at: number;
reporter?: { [k: string]: any }; id: string;
open: boolean;
target_ids: number[]; target_ids: number[];
target_usernames: string[]; target_usernames: string[];
user?: {
discriminator: string;
email: string;
id: string;
username: string;
}
} }
export function createEmotionServer(cache: EmotionCache): EmotionServer; export function createEmotionServer(cache: EmotionCache): EmotionServer;