Skip to content

@hidden implementation of non-hidden overloads result in documentation that marks the function as hidden #2634

Closed
@xuhdev

Description

@xuhdev

Search terms

hidden, overload

Actual Behavior

When the implementation of overloads is marked with @hidden while the overloads aren't, the generated documentation of the function is also marked marked with Hidden.

Reproduction

Save the following file to a.ts.

/**
 * @param a - Number param.
 */
export function f(a: number): void;

/**
 * @param a - String param.
 */
export function f(a: string): void;

/** @hidden */
export function f(a: string | number): void {
  console.log(a);
}

Run typedoc a.ts. Check out the output.

image

Expected Behavior

Function f above shouldn't be marked as Hidden in the generated doc.

Environment

  • Typedoc version: 0.26.3
  • TypeScript version: 5.5.3
  • Node.js version: 22.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions