feat: handle empty response on update achievements

This commit is contained in:
Zamitto
2025-04-13 08:10:52 -03:00
parent 8db03bcccf
commit e0c6d2fe3d
3 changed files with 24 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import type { Cracker, DownloadSourceStatus, Downloader } from "@shared";
import type { SteamAppDetails } from "./steam.types";
import type { Download, Game, Subscription } from "./level.types";
import type { GameShop } from "./game.types";
import type { GameShop, UnlockedAchievement } from "./game.types";
export type FriendRequestAction = "ACCEPTED" | "REFUSED" | "CANCEL";
@@ -237,6 +237,12 @@ export interface UserStats {
unlockedAchievementSum?: number;
}
export interface UpdatedUnlockedAchievements {
objectId: string;
shop: GameShop;
achievements: UnlockedAchievement[];
}
export interface AchievementFile {
type: Cracker;
filePath: string;