From 589d07f1ac8810a7d9f43a60c753093d728842a6 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:53 -0400 Subject: [PATCH] Actually modernize types this time --- index.d.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index d74d151..e0c7cd5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -27,11 +27,14 @@ declare global { interface AppealCardProps { ban_reason: string; created_at: number; - discriminator: string; id: string; learned: string; reason_for_unban: string; - username: string; + user: { + discriminator: string; + id: string; + username: string; + } } interface GameAppealProps { @@ -46,9 +49,16 @@ declare global { attachment: string; attachment_loading?: boolean; created_at: number; - reporter?: { [k: string]: any }; + id: string; + open: boolean; target_ids: number[]; target_usernames: string[]; + user?: { + discriminator: string; + email: string; + id: string; + username: string; + } } export function createEmotionServer(cache: EmotionCache): EmotionServer;