display library disk usage (#976)

This commit is contained in:
an-lee
2024-08-15 17:18:12 +08:00
committed by GitHub
parent 7da9fb8095
commit 04a4f9b296
8 changed files with 176 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ type EnjoyAppType = {
createIssue: (title: string, body: string) => Promise<void>;
onCmdOutput: (callback: (event, output: string) => void) => void;
removeCmdOutputListeners: () => void;
diskUsage: () => Promise<DiskUsageType>;
version: string;
};
window: {

View File

@@ -183,3 +183,9 @@ type PlatformInfo = {
arch: string;
version: string;
};
type DiskUsageType = {
name: string;
path: string;
size: number;
}[];