ms-types 0.10.12 → 0.10.14

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,8 +1,14 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.10.12",
3
+ "version": "0.10.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
+ "types": "./types/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./types/index.d.ts"
10
+ }
11
+ },
6
12
  "publishConfig": {
7
13
  "access": "public"
8
14
  },
@@ -10,7 +16,7 @@
10
16
  "types"
11
17
  ],
12
18
  "scripts": {
13
- "docs:dev": "vitepress dev docs",
19
+ "docs:dev": "vitepress dev docs --host",
14
20
  "docs:build": "vitepress build docs",
15
21
  "docs:preview": "vitepress preview docs",
16
22
  "deploy": "wrangler deploy"
package/types/config.d.ts CHANGED
@@ -30,12 +30,6 @@ declare namespace config {
30
30
  * @example config.get("key")
31
31
  */
32
32
  function get(key: string): any | null;
33
- /**
34
- * 获取 KUI 的配置
35
- * @returns KUI_CONFIG 对应的字典,配置不存在或无法转换时返回空对象
36
- * @example config.getKuiConfig()
37
- */
38
- function getKuiConfig(): Record<string, any>;
39
33
  /**
40
34
  * 删除配置
41
35
  * @param key 配置key
@@ -27,11 +27,6 @@ function _Config.set(key, value) return true end
27
27
  ---@example config.get("key")
28
28
  function _Config.get(key) return nil end
29
29
 
30
- --- 获取 KUI_CONFIG 表;不存在时返回空表
31
- ---@return table<string, any> KUI_CONFIG 对应的字典,配置不存在或无法转换时返回空对象
32
- ---@example config.getKuiConfig()
33
- function _Config.getKuiConfig() return {} end
34
-
35
30
  --- 删除配置
36
31
  ---@param key string 配置key
37
32
  ---@return boolean 删除是否成功
@@ -32,12 +32,6 @@ declare namespace $配置 {
32
32
  * @example $配置.获取("key")
33
33
  */
34
34
  function 获取(配置键: 字符串): 任意类型 | null;
35
- /**
36
- * 获取 KUI 的配置
37
- * @returns KUI_CONFIG 对应的字典,配置不存在或无法转换时返回空对象
38
- * @example $配置.获取KUI配置()
39
- */
40
- function 获取KUI配置(): 字典<任意类型>;
41
35
  /**
42
36
  * 删除配置
43
37
  * @param 配置键 配置key