typedoc-plugin-markdown icon indicating copy to clipboard operation
typedoc-plugin-markdown copied to clipboard

Namespace and class with same name

Open S222em opened this issue 2 years ago • 1 comments

For typedoc-github-wiki-theme

If a namespace and class have the same name e.g.

export class Duck {
  public age: Duck.Age;
}

export namespace Duck {
   export type Age: number;
}

This causes the namespace to not be available in the docs. Maybe URL should contain what type it is? Like /wiki/class-Duck or /wiki/Duck-class.

Example of behavior is here:

  • https://github.com/S222em/hue.ts/wiki/Exports

S222em avatar May 24 '22 19:05 S222em

Oh I see - because of the flat structure types with same name are getting overridden. I agree the solution here is to prepend the type. Thanks - will sort it.

tgreyuk avatar May 26 '22 15:05 tgreyuk