Threadplane
Pricing
Talk to Us
@threadplane/chatFunctionv0.3.4

getMessageType

Maps a Message to a MessageTemplateType. Exported as a standalone function so it can be unit-tested without DOM rendering.

View sourceView Markdown
import { getMessageType } from '@threadplane/chat';

Declaration · overload 1

export declare function getMessageType(message: Message): MessageTemplateType;

Parameters

message · required
Message

Returns

MessageTemplateType