Type alias MultiEventHandler<TEventMap, TEventSubset>
MultiEventHandler<TEventMap, TEventSubset>: (<TEvent>(event: TEvent, payload: TEventMap[TEvent]) => void)
Type Parameters
-
TEventMap extends EventMap
-
TEventSubset extends EventKeys<TEventMap>[] = EventKeys<TEventMap>[]
Type declaration
-
- <TEvent>(event: TEvent, payload: TEventMap[TEvent]): void
-
Type Parameters
-
TEvent extends ElementType<TEventSubset>
Parameters
-
event: TEvent
-
payload: TEventMap[TEvent]
Returns void