Type alias TMessage<T>

TMessage<T>: {
    payload: T;
    type: EventType;
}

Type Parameters

  • T = any

    The type of the payload.

Type declaration

  • payload: T

    Description

    The payload of the message, which can be of any type.

  • type: EventType

    Description

    The type of the event or message.

Description

Represents a generic message structure. This type is used for defining a message format with a specific type and payload. It is generic and can accommodate different payload types.

Generated using TypeDoc