@drewsonne/maya-dates / Exports / Wildcard
Minimal interface used for equality comparison across calendar components.
↳ Wildcard
• new Wildcard()
• 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
▸ equal(other
): boolean
Compare this object with another for equality.
Name | Type |
---|---|
other |
IPart |
boolean
▸ equalWithComment(otherCommentWrapper
): boolean
Check equality including the associated comment.
Name | Type |
---|---|
otherCommentWrapper |
IPart |
boolean
CommentWrapper.equalWithComment
▸ setComment(comment
): any
Replace the current comment.
Name | Type |
---|---|
comment |
string | Comment |
any
▸ toString(): string
Render the wildcard as the character *
.
string