Skip to content

TMessageListener object

TMessageListener is a type that represents a callback for message emissions in buses:

type TMessageListener<T extends BaseMessage<unknown>> = (event: T) => void | Promise<unknown> | unknown;

BaseMessage

BaseMessage represents the BaseMessage object.