Skip to content

Commit 5747345

Browse files
committed
新增ts 接口+ 升级版本2.2.6
1 parent 058c8de commit 5747345

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

index.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// 定义 JCore 类的类型声明
2+
export default class JCore {
3+
/**
4+
* 设置认证信息
5+
* @param auth 是否启用认证
6+
*/
7+
static setAuth(auth: boolean): void;
8+
9+
/**
10+
* 设置国家代码
11+
* @param params 包含国家代码的对象,字段为 { code: string }
12+
*/
13+
static setCountryCode(params: { code: string }): void;
14+
15+
/**
16+
* 启用自动唤醒功能
17+
* @param enable 是否启用自动唤醒
18+
*/
19+
static enableAutoWakeup(enable: boolean): void;
20+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author" : "wicked.tc130",
66
"license" : "ISC",
77
"main" : "index.js",
8-
"version" : "2.2.5",
8+
"version" : "2.2.6",
99
"repository" : {
1010
"type": "git",
1111
"url": "https://github.com/jpush/jcore-react-native"

0 commit comments

Comments
 (0)