editable-console / EditableMessage
Class: EditableMessage
Defined in: EditableMessage.ts:8
Represents an editable message that can be part of multiple logs.
Constructors
Constructor
new EditableMessage(
content
):EditableMessage
Defined in: EditableMessage.ts:20
Creates an instance of EditableMessage.
Parameters
content
The message content.
Returns
EditableMessage
Properties
content
content:
PrimitiveMessage
Defined in: EditableMessage.ts:10
The content of the message.
logs
logs:
EditableLog
[] =[]
Defined in: EditableMessage.ts:13
The logs that contain this message.
Accessors
isObject
Get Signature
get isObject():
boolean
Defined in: EditableMessage.ts:47
Indicates whether the content is an object.
Returns
boolean
True if the content is an object, false otherwise.
Methods
edit()
edit(
newContent
):void
Defined in: EditableMessage.ts:29
Edits the content of the message.
Parameters
newContent
The new content for the message.
Returns
void
remove()
remove():
void
Defined in: EditableMessage.ts:38
Removes this message from all logs that include it.
Returns
void
toString()
toString():
string
Defined in: EditableMessage.ts:56
Converts the message to a string representation.
Returns
string
The string representation of the message.