mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-28 06:20:10 +00:00
23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
import type { ApiModel, ApiItem } from '@microsoft/api-extractor-model';
|
|
import type { DocFencedCode } from '@microsoft/tsdoc';
|
|
import { CommentNode } from './CommentNode';
|
|
|
|
export class FencedCodeCommentNode extends CommentNode<DocFencedCode> {
|
|
public readonly code: string;
|
|
public readonly language: string;
|
|
|
|
public constructor(node: DocFencedCode, model: ApiModel, parentItem?: ApiItem) {
|
|
super(node, model, parentItem);
|
|
this.code = node.code;
|
|
this.language = node.language;
|
|
}
|
|
|
|
public override toJSON() {
|
|
return {
|
|
...super.toJSON(),
|
|
code: this.code,
|
|
language: this.language,
|
|
};
|
|
}
|
|
}
|