feat: change disk usage library as old one did not compile with more recent electron

This commit is contained in:
Zamitto
2025-10-13 08:18:54 -03:00
parent b874138641
commit 330f38776f
4 changed files with 15 additions and 7 deletions

View File

@@ -40,9 +40,9 @@ import type {
AchievementNotificationInfo,
UserLibraryResponse,
Game,
DiskUsage,
} from "@types";
import type { AxiosProgressEvent } from "axios";
import type disk from "diskusage";
declare global {
declare module "*.svg" {
@@ -271,7 +271,7 @@ declare global {
>;
/* Hardware */
getDiskFreeSpace: (path: string) => Promise<disk.DiskUsage>;
getDiskFreeSpace: (path: string) => Promise<DiskUsage>;
checkFolderWritePermission: (path: string) => Promise<boolean>;
/* Cloud save */