ms-types 0.0.40 → 0.0.43

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.0.40",
3
+ "version": "0.0.43",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  "docs:preview": "vitepress preview docs"
16
16
  },
17
17
  "devDependencies": {
18
- "vitepress": "^1.0.0",
19
- "vitepress-theme-teek": "^1.4.5"
18
+ "vitepress": "^1.6.4",
19
+ "vitepress-theme-teek": "^1.4.6"
20
20
  }
21
21
  }
package/types/http.d.ts CHANGED
@@ -179,7 +179,7 @@ declare namespace http {
179
179
  * @returns 请求结果
180
180
  * @example
181
181
  * http.postJSON("https://www.baidu.com", {
182
- * "name": "MagicScript",
182
+ * "name": "快点JS",
183
183
  * "version": "1.0.0"
184
184
  * })
185
185
  */
package/types/index.d.ts CHANGED
@@ -12,6 +12,7 @@
12
12
  /// <reference path="logger.d.ts" />
13
13
  /// <reference path="media.d.ts" />
14
14
  /// <reference path="mysql.d.ts" />
15
+ /// <reference path="netCard.d.ts" />
15
16
  /// <reference path="paddleOcr.d.ts" />
16
17
  /// <reference path="pip.d.ts" />
17
18
  /// <reference path="system.d.ts" />
@@ -0,0 +1,30 @@
1
+ declare namespace netCard {
2
+ /**
3
+ * 验证卡密
4
+ * @param cardNo 卡密
5
+ * @returns 是否验证成功
6
+ */
7
+ function verify(cardNo: string): boolean;
8
+
9
+ /**
10
+ * 设置卡密备注
11
+ * @param remark 备注
12
+ * @returns 是否设置成功
13
+ */
14
+ function setCardRemark(remark: string): boolean;
15
+
16
+ /**
17
+ * 设置值
18
+ * @param key 键
19
+ * @param value 值
20
+ * @returns 成功返回设置的value,失败返回空字符串
21
+ */
22
+ function setValue(key: string, value: string): string;
23
+
24
+ /**
25
+ * 获取值
26
+ * @param key 键
27
+ * @returns 成功返回值,失败返回空字符串
28
+ */
29
+ function getValue(key: string): string;
30
+ }
package/types/ui.d.ts CHANGED
@@ -118,7 +118,7 @@ declare namespace ui {
118
118
  * @param data 传递的数据
119
119
  * @example
120
120
  * ui.call("jsMethod", {
121
- * name: "magicscript",
121
+ * name: "快点JS",
122
122
  * })
123
123
  */
124
124
  function call(key: string, data: any): void;