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