feat: refactor achievement listeners

This commit is contained in:
Zamitto
2024-10-07 20:16:12 -03:00
parent f5445b00f4
commit 63aee44982
6 changed files with 45 additions and 18 deletions

View File

@@ -76,6 +76,11 @@ declare global {
achievements?: { displayName: string; iconUrl: string }[]
) => void
) => () => Electron.IpcRenderer;
onUpdateAchievements: (
objectId: string,
shop: GameShop,
cb: (achievements: GameAchievement[]) => void
) => () => Electron.IpcRenderer;
/* Library */
addGameToLibrary: (