pushy-electron 1.0.13 → 1.0.15
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/lib/Pushy.d.ts +4 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
- package/util/storage.js +3 -0
package/lib/Pushy.d.ts
CHANGED
|
@@ -6,9 +6,13 @@ declare namespace Pushy {
|
|
|
6
6
|
|
|
7
7
|
type Listener<T> = (data: T) => void
|
|
8
8
|
|
|
9
|
+
type ConnectivityListener<T> = (connected: boolean, error: T) => void
|
|
10
|
+
|
|
9
11
|
function listen(): void
|
|
10
12
|
|
|
11
13
|
function setNotificationListener<T>(l: Listener<T>): void
|
|
14
|
+
|
|
15
|
+
function setConnectivityListener<T>(l: ConnectivityListener<T>): void
|
|
12
16
|
|
|
13
17
|
function register(opts: { appId: string }): Promise<DeviceToken>
|
|
14
18
|
|
package/npm-shrinkwrap.json
CHANGED
package/package.json
CHANGED