Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyauhalin committed Nov 20, 2024
1 parent d6820b5 commit be486fb
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions packages/typedoc-declaration/lib/typedoc-util-resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,16 @@ export function resolve(o: J.Reflection, t: Trail): J.Reflection | undefined {
}

function target(o: J.Reflection): J.Reflection[] {
if (isSignatureReflection(o)) {
if (o.parameters) {
return o.parameters
}
return []
if (isSignatureReflection(o) && o.parameters) {
return o.parameters
}

if (isDeclarationReflection(o)) {
if (o.signatures) {
return o.signatures
}
return []
if (isDeclarationReflection(o) && o.signatures) {
return o.signatures
}

if (isContainerReflection(o)) {
if (o.children) {
return o.children
}
return []
if (isContainerReflection(o) && o.children) {
return o.children
}

return []
Expand Down

0 comments on commit be486fb

Please sign in to comment.