@dcloudio/uni-push 3.0.0-alpha-3061520221220001 → 3.0.0-alpha-3061620221230002
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/uni-push.es.js +151 -105
- package/lib/gtpush-min.d.ts +7 -1
- package/lib/gtpush-min.js +10 -9
- package/lib/uni.plugin.js +3 -3
- package/package.json +2 -2
package/lib/gtpush-min.d.ts
CHANGED
@@ -4,6 +4,11 @@ declare namespace GtPush {
|
|
4
4
|
* @param debugMode 打开或关闭调试模式
|
5
5
|
*/
|
6
6
|
function setDebugMode(debugMode: boolean): void
|
7
|
+
/**
|
8
|
+
* 重新连接或断开socket
|
9
|
+
* @param enable
|
10
|
+
*/
|
11
|
+
function enableSocket(enable: boolean): void
|
7
12
|
/**
|
8
13
|
* 初始化GtPush
|
9
14
|
*/
|
@@ -15,7 +20,7 @@ declare namespace GtPush {
|
|
15
20
|
/**
|
16
21
|
* 错误回调
|
17
22
|
*/
|
18
|
-
onError?: (res: {error: any}) => void
|
23
|
+
onError?: (res: { error: any }) => void
|
19
24
|
/**
|
20
25
|
* 个推终端ID回调,标识当前终端和应用
|
21
26
|
*/
|
@@ -29,5 +34,6 @@ declare namespace GtPush {
|
|
29
34
|
*/
|
30
35
|
onPushMsg?: (res: { message: string }) => void
|
31
36
|
}): void
|
37
|
+
|
32
38
|
}
|
33
39
|
export default GtPush
|