From 23542e4f12ee1d59b32733a18360deddf9986b8c Mon Sep 17 00:00:00 2001 From: ZEROM22 Date: Mon, 9 Dec 2024 18:24:50 +0300 Subject: [PATCH] fix signature trail --- packages/typedoc-signature/lib/internal/concise.ts | 4 ++-- packages/typedoc-signature/lib/internal/verbose.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/typedoc-signature/lib/internal/concise.ts b/packages/typedoc-signature/lib/internal/concise.ts index aa1b89fb3..14efbb44f 100644 --- a/packages/typedoc-signature/lib/internal/concise.ts +++ b/packages/typedoc-signature/lib/internal/concise.ts @@ -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) { diff --git a/packages/typedoc-signature/lib/internal/verbose.ts b/packages/typedoc-signature/lib/internal/verbose.ts index 72881cfe0..13763cc46 100644 --- a/packages/typedoc-signature/lib/internal/verbose.ts +++ b/packages/typedoc-signature/lib/internal/verbose.ts @@ -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)) {