aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/types')
-rw-r--r--frontend/src/types/game.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/frontend/src/types/game.ts b/frontend/src/types/game.ts
index 3c595ea..1f46fea 100644
--- a/frontend/src/types/game.ts
+++ b/frontend/src/types/game.ts
@@ -3,3 +3,21 @@ export interface SupportedGame {
formattedName: string;
description: string;
}
+
+export interface Score {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ [key: string]: any;
+ timestamp: string | number;
+ username?: string;
+}
+
+export interface ScoreDisplayProps {
+ scores: Score[];
+ viewMode: "cards" | "table";
+ sortField: string;
+ sortDirection: "asc" | "desc";
+ onSort: (field: string) => void;
+ onDelete?: (scoreId: number) => void;
+ showUsername?: boolean;
+ hideTitleArtist?: boolean;
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage