Skip to content
Threadplane
Pricing
165Talk to Us
@threadplane/angular/chatFunctionv0.3.7

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/angular/chat';

Declaration · overload 1

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

Parameters

message · required
Message

Returns

MessageTemplateType