mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-28 06:20:10 +00:00
20 lines
510 B
TypeScript
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,
|
|
};
|
|
}
|
|
}
|