@etsoo/notificationbase 1.0.97 → 1.0.98
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/Notification.d.ts +2 -2
- package/package.json +1 -1
- package/src/Notification.ts +2 -6
package/lib/Notification.d.ts
CHANGED
|
@@ -68,10 +68,10 @@ export interface NotifictionRenderSetup {
|
|
|
68
68
|
/**
|
|
69
69
|
* On return callback
|
|
70
70
|
* return false will prevent default action
|
|
71
|
-
* return
|
|
71
|
+
* return string is the error message to show
|
|
72
72
|
*/
|
|
73
73
|
export interface NotificationReturn<T> {
|
|
74
|
-
(value: T): boolean |
|
|
74
|
+
(value: T): boolean | string | void | PromiseLike<boolean | string | void>;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Notification message parameters
|
package/package.json
CHANGED
package/src/Notification.ts
CHANGED
|
@@ -72,14 +72,10 @@ export interface NotifictionRenderSetup {
|
|
|
72
72
|
/**
|
|
73
73
|
* On return callback
|
|
74
74
|
* return false will prevent default action
|
|
75
|
-
* return
|
|
75
|
+
* return string is the error message to show
|
|
76
76
|
*/
|
|
77
77
|
export interface NotificationReturn<T> {
|
|
78
|
-
(value: T):
|
|
79
|
-
| boolean
|
|
80
|
-
| [boolean, string | undefined]
|
|
81
|
-
| void
|
|
82
|
-
| PromiseLike<boolean | [boolean, string | undefined] | void>;
|
|
78
|
+
(value: T): boolean | string | void | PromiseLike<boolean | string | void>;
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/**
|