Files
discord.js/packages/website/src/DocModel/comment/PlainTextCommentNode.ts
2022-07-29 10:46:17 +02:00

20 lines
510 B
TypeScript

import type { ApiItem, ApiModel } from '@microsoft/api-extractor-model';
import type { DocPlainText } from '@microsoft/tsdoc';
import { CommentNode } from './CommentNode';
export class PlainTextCommentNode extends CommentNode<DocPlainText> {
public readonly text: string;
public constructor(node: DocPlainText, model: ApiModel, parentItem?: ApiItem) {
super(node, model, parentItem);
this.text = node.text;
}
public override toJSON() {
return {
...super.toJSON(),
text: this.text,
};
}
}