more TS fixes + tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m40s

This commit is contained in:
2025-11-30 00:27:21 -08:00
parent fe2c1a0727
commit f7edb946f7
11 changed files with 487 additions and 19 deletions

View File

@@ -772,4 +772,16 @@ export interface UserAchievement {
user_id: string; // UUID
achievement_id: number;
achieved_at: string; // TIMESTAMPTZ
}
/**
* Represents a user's entry on the leaderboard.
* Returned by the `getLeaderboard` database function.
*/
export interface LeaderboardUser {
user_id: string;
full_name: string | null;
avatar_url: string | null;
points: number;
rank: string; // RANK() returns a bigint, which the pg driver returns as a string.
}