* Registers to the event with the given handler * @param value The function to call when the event occurs. * @returns A function which can be called to unregister the registered handler. * This is usedful if the original function passed to this is not stored somewhere but * unreg
(value: () => void)
| 11 | * unregistering of the event needs to be done. |
| 12 | */ |
| 13 | on(value: () => void): () => void; |
| 14 | /** |
| 15 | * Unregisters the given handler from this event. |
| 16 | * @param value The value originally passed into {@link on}, NOT the function returned by it. |
no outgoing calls