@enonic-types/lib-event 8.0.0-B2 → 8.0.0-B5

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.
Files changed (2) hide show
  1. package/event.d.ts +3 -3
  2. package/package.json +1 -1
package/event.d.ts CHANGED
@@ -65,7 +65,7 @@ export interface EnonicEventDataNode {
65
65
  * @param {object} params Listener parameters.
66
66
  * @param {string} params.type Event type pattern. Works like a Java Pattern, with two key differences: `.` is treated as a literal dot, not a wildcard. `*` acts as `.*`, matching any sequence of characters.
67
67
  * @param {function} params.callback Callback event listener.
68
- * @param {boolean} params.localOnly Local events only (default to false).
68
+ * @param {boolean} [params.localOnly=false] Local events only.
69
69
  */
70
70
  export declare function listener<EventData extends object = EnonicEventData>(params: ListenerParams<EventData>): void;
71
71
  /**
@@ -75,7 +75,7 @@ export declare function listener<EventData extends object = EnonicEventData>(par
75
75
  *
76
76
  * @param {object} event Event to send.
77
77
  * @param {string} event.type Event type.
78
- * @param {boolean} event.distributed True if it should be distributed in cluster.
79
- * @param {object} event.data Additional data for event.
78
+ * @param {boolean} [event.distributed=false] True if it should be distributed in cluster.
79
+ * @param {object} [event.data] Additional data for event.
80
80
  */
81
81
  export declare function send<EventData extends object = object>(event: SendParams<EventData>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-event",
3
- "version": "8.0.0-B2",
3
+ "version": "8.0.0-B5",
4
4
  "description": "Type definitions for lib-event.",
5
5
  "types": "event.d.ts",
6
6
  "files": [