@neo4j-nvl/interaction-handlers 0.2.48 → 0.2.50
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,18 +34,18 @@ declare abstract class BaseInteraction<T extends Record<string, ((...args: unkno
|
|
|
34
34
|
/**
|
|
35
35
|
* @internal
|
|
36
36
|
*/
|
|
37
|
-
callCallbackIfRegistered: (name: keyof T, ...args:
|
|
37
|
+
callCallbackIfRegistered: (name: keyof T | string, ...args: unknown[]) => void;
|
|
38
38
|
/**
|
|
39
39
|
* Add or update a callback for a given event of type.
|
|
40
40
|
* @param name - The name of the event
|
|
41
41
|
* @param callback - The callback to be called when the event is triggered
|
|
42
42
|
*/
|
|
43
|
-
updateCallback: (name: keyof T, callback: T[keyof T]) => void;
|
|
43
|
+
updateCallback: (name: keyof T | string, callback: T[keyof T]) => void;
|
|
44
44
|
/**
|
|
45
45
|
* Remove a callback for a given event of type.
|
|
46
46
|
* @param name - The name of the event
|
|
47
47
|
*/
|
|
48
|
-
removeCallback: (name: keyof T) => void;
|
|
48
|
+
removeCallback: (name: keyof T | string) => void;
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|