Properties
emit
emit: (<Key>(event: Key, ...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]) => void)
Type declaration
-
- <Key>(event: Key, ...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]): void
-
Parameters
-
event: Key
-
Rest
...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]
Returns void
on
on: (<Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>) => void)
Type declaration
-
- <Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>): void
-
Parameters
-
event: Key
-
cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>
Returns void
unsubscribe
unsubscribe: (<Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>) => void)
Type declaration
-
- <Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>): void
-
Parameters
-
event: Key
-
cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>
Returns void