We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 058c8de commit 5747345Copy full SHA for 5747345
index.d.ts
@@ -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
@@ -5,7 +5,7 @@
"author" : "wicked.tc130",
"license" : "ISC",
"main" : "index.js",
- "version" : "2.2.5",
+ "version" : "2.2.6",
"repository" : {
"type": "git",
"url": "https://github.com/jpush/jcore-react-native"
0 commit comments