feat: get trending games from api

This commit is contained in:
Zamitto
2024-09-12 20:39:49 -03:00
parent 87cacdf16c
commit 3199e56661
6 changed files with 66 additions and 48 deletions

View File

@@ -18,6 +18,7 @@ import type {
FriendRequestAction,
UserFriends,
UserBlocks,
TrendingGame,
} from "@types";
import type { DiskSpace } from "check-disk-space";
@@ -56,6 +57,7 @@ declare global {
prevCursor?: number
) => Promise<{ results: CatalogueEntry[]; cursor: number }>;
searchGameRepacks: (query: string) => Promise<GameRepack[]>;
getTrendingGames: () => Promise<TrendingGame[]>;
/* Library */
addGameToLibrary: (