Skip to content

wrapWithFireEvent

wrapWithFireEvent<T, P>(eventName, actionHandler, extraEventInfo?): TransformActionHandler<T>

Type Parameters

T extends Transform

P extends object = Record<string, never>

Parameters

eventName: TModificationEvents

the event we want to fire

actionHandler: TransformActionHandler<T>

the function to wrap

extraEventInfo?: P

extra information to pas to the event handler

Returns

TransformActionHandler<T>

a function with an action handler signature

Defined in

src/controls/wrapWithFireEvent.ts:16