Skip to content

Links to values and type aliases with the same name point to type aliases only #1845

Closed
@glebbash

Description

@glebbash

Search terms

type aliases same name values link anchor

Expected Behavior

Having this example TypeDoc generates documentation for value and type.

// index.ts
export const Value = 2;
export type Value = 2;

And then it should generate links to them which are different.
For example: /docs/modules.html#Value.value and /docs/modules.html#Value.type

Actual Behavior

TypeDoc generates the same link for both which is /docs/modules.html#Value.value and thus points only to type alias which appears first on the page.

Steps to reproduce the bug

  1. Paste the contents of example into file called index.ts.
  2. Run
typedoc index.ts

Environment

  • Typedoc version: 0.22.10
  • TypeScript version: 4.5.4
  • Node.js version: 16.13.0
  • OS: Ubuntu 20.04 in WSL2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions