Skip to content

Unscoped @link in interface member docs cannot be resolved after inheritance into another package #2622

Closed
@yoursunny

Description

Search terms

@link, interface

Steps to reproduce the bug

TypeStrong/typedoc-repros#43

  1. In package lib, interface LibInt has a member whose documentation contains {@link libFunc}, linking to another identifier in the same package.
  2. In package wrapping-lib, there's an interface that inherits from LibInt.

Expected Behavior

TypeDoc should be able to resolve @link without NPM scope within the identifiers defined in the same package where the documentation appears.

Actual Behavior

[warning] Failed to resolve link to "libFunc" in comment for @typedoc/wrapping-lib.WrappingInt.bar

This suggests that TypeDoc is attempting to resolve libFunc within the context of wrapping-lib package.
Since the @link tag was written in lib package, this identifier should be resolved within that package instead, even if it's inherited.

Environment

  • Typedoc version: 0.26.3
  • TypeScript version: 5.5.2
  • Node.js version: 20.15.0
  • OS: Ubuntu 22.04.4

Metadata

Assignees

No one assigned

    Labels

    bugFunctionality does not match expectation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions