SubscribingFn
See source codeFunction type for subscribing to events with a callback. Returns an unsubscribe function to clean up the listener.
type SubscribingFn<T> = (cb: (val: T) => void) => () => void
Parameters
Name | Description |
---|---|
| Callback function that receives the event value |
Prev
OmitVoidNext
TLCustomMessageHandler