mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
29 lines
842 B
TypeScript
29 lines
842 B
TypeScript
import type { DocNode, DocNodeKind } from '@microsoft/tsdoc';
|
|
import type { DocBlockJSON } from './CommentBlock.js';
|
|
import type { DocCodeSpanJSON } from './CommentCodeSpan.js';
|
|
import type { DocNodeContainerJSON } from './CommentNodeContainer.js';
|
|
import type { DocFencedCodeJSON } from './FencedCodeCommentNode.js';
|
|
import type { DocLinkTagJSON } from './LinkTagCommentNode.js';
|
|
import type { DocPlainTextJSON } from './PlainTextCommentNode.js';
|
|
import type { DocCommentJSON } from './RootComment.js';
|
|
|
|
export interface DocNodeJSON {
|
|
kind: DocNodeKind;
|
|
}
|
|
|
|
export type AnyDocNodeJSON =
|
|
| DocBlockJSON
|
|
| DocCodeSpanJSON
|
|
| DocCommentJSON
|
|
| DocFencedCodeJSON
|
|
| DocLinkTagJSON
|
|
| DocNodeContainerJSON
|
|
| DocNodeJSON
|
|
| DocPlainTextJSON;
|
|
|
|
export function node(node: DocNode): DocNodeJSON {
|
|
return {
|
|
kind: node.kind as DocNodeKind,
|
|
};
|
|
}
|