mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Create index.d.ts
This commit is contained in:
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
// Type definitions for drivelist 6.4.3
|
||||
// Project: https://github.com/resin-io-modules/drivelist
|
||||
// Definitions by: Xiao <https://github.com/WholeMilk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.1.3
|
||||
|
||||
export type BusType = "SATA" | "SCSI" | "ATA" | "IDE" | "PCI" | "UNKNOWN";
|
||||
|
||||
export interface MountPoint {
|
||||
path: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export interface Drive {
|
||||
enumerator: string;
|
||||
busType: BusType;
|
||||
busVersion: string | null;
|
||||
device: string;
|
||||
devicePath: string | null;
|
||||
raw: string;
|
||||
description: string;
|
||||
error: any | null;
|
||||
size: number | null;
|
||||
blockSize: number | null;
|
||||
logicalBlockSize: number | null;
|
||||
mountpoints: MountPoint[];
|
||||
isReadOnly: boolean;
|
||||
isSystem: boolean;
|
||||
isVirtual: boolean | null;
|
||||
isRemovable: boolean | null;
|
||||
isCard: boolean | null;
|
||||
isSCSI: boolean | null;
|
||||
isUSB: boolean | null;
|
||||
isUAS: boolean | null;
|
||||
}
|
||||
|
||||
export function list(callback: (error: any, drives: Drive[]) => void): void;
|
||||
Reference in New Issue
Block a user