Skip to content

Strange re-export behavior with @namespace #2444

@jpolo

Description

@jpolo

Search terms

Expected Behavior

Expectation 1 :
When a namespace extends some type, I expect two possible behaviors : the documentation is copied OR the documentation forwards to the parent class / type / interface.

Expectation 2:
In my case, the namespace is a specialisation of the type (i.e. a generic type bound to a specified type parameter)
Simply re exporting would lose the type information, which can lead to an unclear generated doc.

Actual Behavior

The doc of a given namespace (repro "Number") re exports another namespace (repro : "Boolean") instead of the parent namespace (repro : "Comparable").

Also, it should not "lose" type parameters. (= Re export link might not be sufficient)

Steps to reproduce the bug

The doc

https://w5s.github.io/std/api/core/namespace/Number#==

The repo

https://github.com/w5s/std

Environment

  • Typedoc version: 0.25.3
  • TypeScript version: 5.x
  • Node.js version: 20.x
  • OS: macOS

Thanks again for your great project 👍

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