Type alias WildcardEventHandler<TEventMap>
WildcardEventHandler<TEventMap>: (<T>(event: T, payload: TEventMap[T]) => void)
Type Parameters
Type declaration
-
- <T>(event: T, payload: TEventMap[T]): void
-
Type Parameters
-
T extends EventKeys<TEventMap>
Parameters
-
event: T
-
payload: TEventMap[T]
Returns void