@tnf-dev/js 1.0.3-0 → 1.0.4
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.
@@ -34,7 +34,15 @@ declare class NotificationClient {
|
|
34
34
|
markAllAsRead(): Promise<BaseResponse<void>>;
|
35
35
|
archive(notificationId: string): Promise<BaseResponse<Notification>>;
|
36
36
|
unarchive(notificationId: string): Promise<BaseResponse<Notification>>;
|
37
|
+
/**
|
38
|
+
* Add listener to notification change
|
39
|
+
* @param handler Handle function
|
40
|
+
*/
|
37
41
|
on(handler: Handler): void;
|
42
|
+
/**
|
43
|
+
* Remove listener to notification change
|
44
|
+
* @param handler Handle function
|
45
|
+
*/
|
38
46
|
off(handler: Handler): void;
|
39
47
|
}
|
40
48
|
|
@@ -34,7 +34,15 @@ declare class NotificationClient {
|
|
34
34
|
markAllAsRead(): Promise<BaseResponse<void>>;
|
35
35
|
archive(notificationId: string): Promise<BaseResponse<Notification>>;
|
36
36
|
unarchive(notificationId: string): Promise<BaseResponse<Notification>>;
|
37
|
+
/**
|
38
|
+
* Add listener to notification change
|
39
|
+
* @param handler Handle function
|
40
|
+
*/
|
37
41
|
on(handler: Handler): void;
|
42
|
+
/**
|
43
|
+
* Remove listener to notification change
|
44
|
+
* @param handler Handle function
|
45
|
+
*/
|
38
46
|
off(handler: Handler): void;
|
39
47
|
}
|
40
48
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"browser": "./dist/esm/index.js",
|
3
3
|
"dependencies": {
|
4
|
-
"@tnf-dev/core": "1.0.
|
4
|
+
"@tnf-dev/core": "1.0.4",
|
5
5
|
"convex": "^1.24.8"
|
6
6
|
},
|
7
7
|
"devDependencies": {
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"sideEffects": false,
|
50
50
|
"type": "module",
|
51
51
|
"types": "./dist/esm/index.d.ts",
|
52
|
-
"version": "1.0.
|
52
|
+
"version": "1.0.4"
|
53
53
|
}
|