aboutsummaryrefslogtreecommitdiff
path: root/src/lib/APITypes.d.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-10 18:54:57 -0500
committermat <github@matdoes.dev>2022-04-10 18:54:57 -0500
commit96f151c3901243a12efafc17c28f85d94b7d7c03 (patch)
treef121e23f9b1ac22ce3c066d77141d643ba74c13d /src/lib/APITypes.d.ts
parentb1804597e9c23215330f6a895046f5ddcb40fe4d (diff)
downloadskyblock-stats-96f151c3901243a12efafc17c28f85d94b7d7c03.tar.gz
skyblock-stats-96f151c3901243a12efafc17c28f85d94b7d7c03.tar.bz2
skyblock-stats-96f151c3901243a12efafc17c28f85d94b7d7c03.zip
Add leaderboard typings
Diffstat (limited to 'src/lib/APITypes.d.ts')
-rw-r--r--src/lib/APITypes.d.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts
index 65e70f3..2a33973 100644
--- a/src/lib/APITypes.d.ts
+++ b/src/lib/APITypes.d.ts
@@ -349,3 +349,36 @@ export interface CoopInvitation {
}
export type GameMode = 'normal' | 'stranded' | 'bingo' | 'ironman'
+
+export interface MemberLeaderboard {
+ name: string
+ unit: string | null
+ list: MemberLeaderboardItem[]
+ info?: string
+}
+
+export interface ProfileLeaderboard {
+ name: string
+ unit: string | null
+ list: ProfileLeaderboardItem[]
+ info?: string
+}
+
+export interface MemberLeaderboardItem {
+ player: LeaderboardBasicPlayer
+ profileUuid: string
+ value: number
+}
+export interface ProfileLeaderboardItem {
+ players: LeaderboardBasicPlayer[]
+ profileUuid: string
+ value: number
+}
+
+export interface LeaderboardBasicPlayer {
+ uuid: string
+ username: string
+ rank: {
+ color: string
+ }
+}