Type alias MessageType

MessageType: {
    content: string | null;
    created_at: string;
    deleted_at?: string | null;
    id: string;
    is_deleted?: boolean;
    room: string;
    user: UserType;
}

Type declaration

  • content: string | null

    The content of the message.

  • created_at: string

    When the message was created.

  • Optional deleted_at?: string | null

    When the message was soft-deleted.

  • id: string

    Persistent unique id.

  • Optional is_deleted?: boolean

    Whether the message has been soft-deleted.

  • room: string

    Room id.

  • user: UserType

    Author.