mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat: show default values in docs (#10465)
This commit is contained in:
@@ -39,6 +39,7 @@ import {
|
||||
} from '@discordjs/api-extractor-model';
|
||||
import { DocNodeKind, SelectorKind, StandardTags } from '@microsoft/tsdoc';
|
||||
import type {
|
||||
DocEscapedText,
|
||||
DocNode,
|
||||
DocNodeContainer,
|
||||
DocDeclarationReference,
|
||||
@@ -307,6 +308,11 @@ function itemTsDoc(item: DocNode, apiItem: ApiItem) {
|
||||
kind: DocNodeKind.PlainText,
|
||||
text: (node as DocPlainText).text,
|
||||
};
|
||||
case DocNodeKind.EscapedText:
|
||||
return {
|
||||
kind: DocNodeKind.PlainText,
|
||||
text: (node as DocEscapedText).decodedText,
|
||||
};
|
||||
case DocNodeKind.Section:
|
||||
case DocNodeKind.Paragraph:
|
||||
return (node as DocNodeContainer).nodes.map((node) => createNode(node));
|
||||
|
||||
Reference in New Issue
Block a user