mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
21 lines
626 B
TypeScript
21 lines
626 B
TypeScript
import type { ApiItem, ApiModel } from '@microsoft/api-extractor-model';
|
|
import type { DocNodeContainer } from '@microsoft/tsdoc';
|
|
import { type AnyDocNodeJSON, type DocNodeJSON, node } from './CommentNode.js';
|
|
import { createCommentNode } from './index.js';
|
|
|
|
export interface DocNodeContainerJSON extends DocNodeJSON {
|
|
nodes: AnyDocNodeJSON[];
|
|
}
|
|
|
|
export function nodeContainer(
|
|
container: DocNodeContainer,
|
|
model: ApiModel,
|
|
version: string,
|
|
parentItem?: ApiItem,
|
|
): DocNodeContainerJSON {
|
|
return {
|
|
...node(container),
|
|
nodes: container.nodes.map((node) => createCommentNode(node, model, version, parentItem)),
|
|
};
|
|
}
|