From 1fa1aaed398adae7a145702d6624126ac6ec6cca Mon Sep 17 00:00:00 2001 From: Brad Veryard Date: Mon, 4 Nov 2024 17:08:11 +0800 Subject: [PATCH] fix: Types --- .../src/providers/disk/disk-provider-types.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/client-api/src/providers/disk/disk-provider-types.ts b/packages/client-api/src/providers/disk/disk-provider-types.ts index a8b7bf7d..c814bc7c 100644 --- a/packages/client-api/src/providers/disk/disk-provider-types.ts +++ b/packages/client-api/src/providers/disk/disk-provider-types.ts @@ -15,8 +15,8 @@ export interface Disk { name: string; fileSystem: string; mountPoint: string; - totalSpace: number; - availableSpace: number; + totalSpace: DiskSizeMeasure; + availableSpace: DiskSizeMeasure; isRemovable: boolean; diskType: string; } @@ -24,3 +24,11 @@ export interface Disk { export interface DiskOutput { disks: Disk[]; } + +export interface DiskSizeMeasure { + bytes: number; + siValue: number; + siUnit: string; + iecValue: number; + iecUnit: string; +}