* Registers an event listener for the given event. * @param event Event name * @param callback Callback to be executed when the event is emitted
(
event: EventKey,
callback: EventCallback,
)
| 76 | * @param callback Callback to be executed when the event is emitted |
| 77 | */ |
| 78 | on< |
| 79 | EventsMap extends Record<string, Function> = Record<string, Function>, |
| 80 | EventKey extends keyof EventsMap = keyof EventsMap, |
| 81 | EventCallback extends EventsMap[EventKey] = EventsMap[EventKey], |
no outgoing calls