aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/types/game.ts
blob: 1f46feae969c7e49c88143cbc2d555fddfee43d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export interface SupportedGame {
  internalName: string;
  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