Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
glebbash opened this issue Jan 15, 2022 · 1 comment
Milestone

Comments

@glebbash
Copy link

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
@glebbash glebbash added the bug label Jan 15, 2022
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jan 30, 2022

I thought I fixed this like a year ago... that's annoying.

@Gerrit0 Gerrit0 added this to the v0.23 milestone Apr 17, 2022
@Gerrit0 Gerrit0 mentioned this issue Apr 17, 2022
8 tasks
@Gerrit0 Gerrit0 removed the bug label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants