Skip to content

Links point to wrong scope when linking from interface to external scope #1949

Closed
@ritave

Description

@ritave

Search terms

link

Steps to reproduce the bug

export interface MyInterface {
}
export interface Nested {
  // This will link to Nested.MyInterface in generated documentation
  // The behaviour is different from the Typescript Language Server, which links to interface MyInterface
  /** {@link MyInterface} */
  readonly MyInterface: new() => MyInterface;
}

Notice that this will work correctly

export interface MyInterface {
}
export type Nested = {
  // Both Typedoc and TS Language Server will point to interface MyInterface
  /** {@link MyInterface} */
  readonly MyInterface: new() => MyInterface;
};

Environment

  • Typedoc version: TypeDoc 0.22.17
  • TypeScript version: Version 4.7.2
  • Node.js version: v16.15.0
  • OS: macOS Monterey Version 12.4

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