overhauled structure, leaderboardRoute.ts and userRoute.ts working
This commit is contained in:
parent
c2cd74ebe2
commit
fff55edf79
25 changed files with 315 additions and 212 deletions
|
|
@ -1,7 +1,10 @@
|
|||
export type Leaderboard<T> = LeaderboardEntry<T>[];
|
||||
|
||||
export type HighscoreLeaderboard = Leaderboard<number>;
|
||||
export type TimeLeaderboard = Leaderboard<string>;
|
||||
|
||||
export interface LeaderboardEntry<T> {
|
||||
username: number,
|
||||
rank: number,
|
||||
username: string,
|
||||
score: T,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue