wrapWithFireEvent
wrapWithFireEvent<
T
,P
>(eventName
,actionHandler
,extraEventInfo?
):TransformActionHandler
<T
>
Defined in: src/controls/wrapWithFireEvent.ts:16
Wrap an action handler with firing an event if the action is performed
Type Parameters
Section titled “Type Parameters”T
extends Transform
P
extends object
= Record
<string
, never
>
Parameters
Section titled “Parameters”eventName
Section titled “eventName”the event we want to fire
actionHandler
Section titled “actionHandler”the function to wrap
extraEventInfo?
Section titled “extraEventInfo?”P
extra information to pas to the event handler
Returns
Section titled “Returns”a function with an action handler signature