Skip to content

Cannot link to default property #2524

Closed
Closed
@dsogari

Description

@dsogari

Search terms

link, default

Expected Behavior

It should generate the docs.

Actual Behavior

It outputs:

[warning] Failed to resolve link to "Test.default" in comment for Test.__type.other.

Steps to reproduce the bug

  1. Create a package.json file with the following contents:
{
  "name": "test",
  "version": "0.1.0"
}
  1. Create an index.ts file with the following contents:
/** Test */
export type Test = {
  /** Default */
  readonly default: string;
  /** {@link Test.default} */
  readonly other: string;
}
  1. Run the following commands:
npm install --save-dev typedoc typescript
npm exec typedoc index.ts

Environment

  • Typedoc version: 0.25.12
  • TypeScript version: 5.4.2
  • Node.js version: v20.11.0
  • OS: Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 x86_64

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