@drewsonne/maya-dates / Exports / CommentWrapper
Mixin providing comment functionality for domain objects.
• Protected
new CommentWrapper()
• comment: Comment
Attached comment.
▸ appendComment(comment
): any
Append additional text to the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any
▸ commentIsEqual(otherCommentWrapper
): boolean
Compare this wrapper’s comment against another wrapper.
Name | Type |
---|---|
otherCommentWrapper |
CommentWrapper |
boolean
▸ equalWithComment(otherCommentWrapper
): boolean
Check equality including the associated comment.
Name | Type |
---|---|
otherCommentWrapper |
IPart |
boolean
▸ setComment(comment
): any
Replace the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any