@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Interface ChatMessage<M>

    A single chat message.

    interface ChatMessage<M = unknown> {
        content: string;
        id: string;
        meta?: M;
        sender: ChatParticipant;
        timestamp: Date;
        type?: ChatMessageType;
    }

    Type Parameters

    • M = unknown

      — Extra metadata attached to each message.

    Index

    Properties

    content: string

    Message content (plain text or HTML depending on type).

    id: string

    Unique message identifier.

    meta?: M

    Optional metadata.

    Who sent the message.

    timestamp: Date

    When the message was sent.

    Content interpretation. Defaults to 'text'.