@eoussama/firemitt
    Preparing search index...

    Type Alias TMessage<T>

    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.

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

    Type Parameters

    • T = unknown

      The type of the payload.

    Index

    Properties

    Properties

    payload: T

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

    type: EventType

    The type of the event or message.