Skip to content

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

Closed

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

Activity

  1. changed the title [-]`@hidden` still shows for overloaded function[/-] [+]`@hidden` implementation of non-hidden overloads result in documentation that mark the function as hidden[/+] on Jul 9, 2024
  2. changed the title [-]`@hidden` implementation of non-hidden overloads result in documentation that mark the function as hidden[/-] [+]`@hidden` implementation of non-hidden overloads result in documentation that marks the function as hidden[/+] on Jul 9, 2024
  3. Gerrit0 commented on Jul 10, 2024

    @Gerrit0
    Collaborator

    That should have entirely removed the function from the documentation... weird.

  4. xuhdev commented on Jul 10, 2024

    @xuhdev
    ContributorAuthor

    How should we exclude the implementation prototype from the doc then? They are often only used for implementation and not for users to read.

  5. xuhdev commented on Jul 10, 2024

    @xuhdev
    ContributorAuthor

    nvm, the implementation is undocumented by default.

  6. added a commit that references this issue on Jul 11, 2024
    32fff2b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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