feat: sync game data when opening game page

This commit is contained in:
Zamitto
2025-05-26 10:06:19 -03:00
parent 4893d61ee3
commit 1c6bc49ed0
6 changed files with 52 additions and 3 deletions

View File

@@ -343,6 +343,23 @@ export type LibraryGame = Game &
download: Download | null;
};
export type UserGameDetails = ShopAssets & {
userId: string;
playTimeInMilliseconds: number;
unlockedAchievementCount: number;
achievementsPointsEarnedSum: number;
lastTimePlayed: Date | null;
isDeleted: boolean;
isFavorite: boolean;
friendsWhoPlayed: {
id: string;
displayName: string;
profileImageUrl: string | null;
lastTimePlayed: Date | null;
playTimeInSeconds: number;
}[];
};
export * from "./game.types";
export * from "./steam.types";
export * from "./download.types";