Skip to content

Commit

Permalink
fix signature trail
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEROM22 committed Dec 9, 2024
1 parent 29ec640 commit 23542e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/typedoc-signature/lib/internal/concise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import {type JSONOutput as J} from "typedoc"
import {type ComputeRepository} from "../main.ts"

export function concise(r: ComputeRepository, e: DeclarationEntity): void {
const f = r.trailOf(e.declaration)
let f = r.trailOf(e.declaration)
if (!f) {
return
}
const t = r.reflectionOf(f)
f.pop()
f = f.slice(0, -1)
const p = r.reflectionOf(f)

if (e.declaration.parameters.length !== 0) {
Expand Down
4 changes: 2 additions & 2 deletions packages/typedoc-signature/lib/internal/verbose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const NEWLINE = "\n"
const LIMIT = 100

export function verbose(r: ComputeRepository, e: DeclarationEntity): void {
const f = r.trailOf(e.declaration)
let f = r.trailOf(e.declaration)
if (!f) {
return
}
const t = r.reflectionOf(f)
f.pop()
f = f.slice(0, -1)
const p = r.reflectionOf(f)

if (isClassReflection(t)) {
Expand Down

0 comments on commit 23542e4

Please sign in to comment.