off
off<
T,K>(topic,listener):void
Defined in: astrobase/src/events/events.ts:80
Unsubscribes a callback from an event topic.
Note: you can also unsubscribe using the function returned by on.
Type Parameters
Section titled “Type Parameters”A map of topic names and their emitted value types.
K extends string | number | symbol = keyof T
The topic name to unsubscribe from.
Parameters
Section titled “Parameters”K
The topic name to unsubscribe from.
listener
Section titled “listener”Listener<T[K]>
The listener callback to unsubscribe.
Returns
Section titled “Returns”void