SubscribingFn

See source code

Function 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

NameDescription

cb

Callback function that receives the event value

Prev
OmitVoid
Next
TLCustomMessageHandler