@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.
@@ -68,10 +68,10 @@ export interface NotifictionRenderSetup {
68
68
  /**
69
69
  * On return callback
70
70
  * return false will prevent default action
71
- * return tuple second parameter is the error message to show
71
+ * return string is the error message to show
72
72
  */
73
73
  export interface NotificationReturn<T> {
74
- (value: T): boolean | [boolean, string | undefined] | void | PromiseLike<boolean | [boolean, string | undefined] | void>;
74
+ (value: T): boolean | string | void | PromiseLike<boolean | string | void>;
75
75
  }
76
76
  /**
77
77
  * Notification message parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/notificationbase",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "TypeScript notification component for extending with all features described and partially implemented",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -72,14 +72,10 @@ export interface NotifictionRenderSetup {
72
72
  /**
73
73
  * On return callback
74
74
  * return false will prevent default action
75
- * return tuple second parameter is the error message to show
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
  /**