Interface EventListenable<E>
Methods
off
- off<EventName>(eventName: EventName, handler: ((ev: E[EventName]) => void)): EventListenable<E>
-
Type Parameters
-
EventName extends string | number | symbol
Parameters
-
eventName: EventName
-
handler: ((ev: E[EventName]) => void)
-
- (ev: E[EventName]): void
-
Returns void
on
- on<EventName>(eventName: EventName, handler: ((ev: E[EventName]) => void)): EventListenable<E>
-
Type Parameters
-
EventName extends string | number | symbol
Parameters
-
eventName: EventName
-
handler: ((ev: E[EventName]) => void)
-
- (ev: E[EventName]): void
-
Returns void