Skip to content

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

T extends Transform

P extends object = Record<string, never>

TModificationEvents

the event we want to fire

TransformActionHandler<T>

the function to wrap

P

extra information to pas to the event handler

TransformActionHandler<T>

a function with an action handler signature