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 +3 -3
- package/types/http.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/types/netCard.d.ts +30 -0
- package/types/ui.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-types",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
19
|
-
"vitepress-theme-teek": "^1.4.
|
|
18
|
+
"vitepress": "^1.6.4",
|
|
19
|
+
"vitepress-theme-teek": "^1.4.6"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/types/http.d.ts
CHANGED
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
|
+
}
|