chore: refactored docs-util (#5876)

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

View File

@@ -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,
})
)