ms-types 0.9.41 → 0.9.42

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types/ui.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.9.41",
3
+ "version": "0.9.42",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -18,6 +18,6 @@
18
18
  "devDependencies": {
19
19
  "vitepress": "^1.6.4",
20
20
  "vitepress-theme-teek": "^1.6.2",
21
- "wrangler": "^4.125.0"
21
+ "wrangler": "^4.128.0"
22
22
  }
23
23
  }
package/types/ui.d.ts CHANGED
@@ -69,6 +69,12 @@ declare namespace ms {
69
69
  */
70
70
  function setAllConfig(config: Record<string, any>): Promise<boolean>;
71
71
 
72
+ /**
73
+ * 获取设备ID
74
+ * @returns 设备的唯一标识符(IDFV)。卸载重装 APP 后会改变,更新 APP 后不会改变。
75
+ */
76
+ function getDeviceID(): Promise<string>;
77
+
72
78
  /**
73
79
  * 获取服务器设备ID
74
80
  * @returns 服务器设备ID