chore: refactored docs-util (#5876)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2023-12-14 18:25:40 +02:00
1 parent 2d79eeeecc
commit fde1e23995
21 files changed
+255 -162

No files matched your search

@@ -154,6 +154,7 @@ export function getReflectionType({
collapse,
wrapBackticks = true,
hideLink = false,
...options
}: TypeOptions<ReflectionParameterType>): string {
if ("signatures" in model && model.signatures) {
return collapse === "function" || collapse === "all"
@@ -163,6 +164,7 @@ export function getReflectionType({
wrapBackticks,
hideLink,
escape: !wrapBackticks,
...options,
})
}
return collapse === "object" || collapse === "all"
@@ -172,6 +174,7 @@ export function getReflectionType({
wrapBackticks,
hideLink,
escape: !wrapBackticks,
...options,
})}${wrapBackticks ? "`" : ""}`
}
@@ -347,6 +350,7 @@ export function getReferenceType({
wrapBackticks: false,
hideLink,
escape: false,
getRelativeUrlMethod,
...options,
})
)