getMessageType
Maps a Message to a MessageTemplateType. Exported as a standalone function so it can be unit-tested without DOM rendering.
import { getMessageType } from '@threadplane/chat';Declaration · overload 1
export declare function getMessageType(message: Message): MessageTemplateType;Parameters
message· requiredMessage
Returns
MessageTemplateType