Unscoped @link in interface member docs cannot be resolved after inheritance into another package #2622
Closed
Description
Search terms
@link, interface
Steps to reproduce the bug
- In package lib, interface
LibInt
has a member whose documentation contains{@link libFunc}
, linking to another identifier in the same package. - 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