ms-types 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/device.d.ts CHANGED
@@ -17,6 +17,23 @@ declare namespace device {
17
17
  */
18
18
  isCharging: boolean;
19
19
  };
20
+ /**
21
+ * 获取存储空间大小
22
+ */
23
+ function getStorageSpace(): {
24
+ /**
25
+ * 总存储空间
26
+ */
27
+ total: number;
28
+ /**
29
+ * 可用存储空间
30
+ */
31
+ free: number;
32
+ /**
33
+ * 单位
34
+ */
35
+ unit: string;
36
+ };
20
37
  /**
21
38
  * 获取设备ID
22
39
  * @returns 设备ID
@@ -18,6 +18,23 @@ declare namespace $设备 {
18
18
  */
19
19
  isCharging: 布尔值;
20
20
  };
21
+ /**
22
+ * 获取存储空间大小
23
+ */
24
+ function 获取存储空间状态(): {
25
+ /**
26
+ * 总存储空间
27
+ */
28
+ total: 数字;
29
+ /**
30
+ * 可用存储空间
31
+ */
32
+ free: 数字;
33
+ /**
34
+ * 单位
35
+ */
36
+ unit: 字符串;
37
+ };
21
38
  /**
22
39
  * 获取设备ID
23
40
  * @returns 设备ID