fix(core): update

This commit is contained in:
2021-12-03 16:39:50 +01:00
parent 770c5a2b67
commit b5bd1a7c9d
28 changed files with 28590 additions and 614 deletions

View File

@@ -1,15 +1,30 @@
import * as plugins from './smartdrive.plugins'
import * as plugins from './smartdrive.plugins';
export interface IDrive {
device: string
description: string
size: number,
mountpoints: IMountpoint[]
raw: string
protected: boolean
system: boolean
export interface ILsBlkJson {
blockdevices: {
name: string;
'maj:min': string;
rm: boolean;
size: number;
ro: boolean;
type: 'disk' | 'part';
mountpoint: null;
children: {
name: string;
'maj:min': string;
rm: boolean;
size: string;
ro: boolean;
type: 'disk' | 'part';
mountpoint: string;
}[];
}[];
}
export interface IDrive extends plugins.drivelist.Drive {
children: ILsBlkJson['blockdevices'][0]['children'];
}
export interface IMountpoint {
path: string
path: string;
}