src/lib/chat/chat_message.ts
export class ChatMessage {
private readonly _value: string
public constructor(value: string) {
if (value.length < 1) {
throw new Error('ChatMessage must be at least 1 character long.')
}
this._value = value
}
public get value(): string {
return this._value
}
}