import { ContentType } from "../ContentType"; import { ContentTypeFactory } from "../ContentType.factory"; import { IContentType } from "../ContentType.interface"; export class Mention extends ContentType implements IContentType { readonly mentionContent: IContentType constructor(blackJsonRaw:any) { super(blackJsonRaw) this.mentionContent = ContentTypeFactory.transformWithType(this.content) } toHTML(): string { return this.mentionContent.toHTML() } }