You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No warning or error in the scenario laid out below
Actual Behavior
TypeDoc fails to compile with this warning and error:
warning Failed to resolve {@link AnotherInterface} in SameNameClassNamespace with declaration references. This link will break in v0.24.
error Command failed with exit code 3.
/** * Some code reproducing a bug. */declarenamespaceSameNameClassNamespace{/** * This causes an error even though it's relatively correct: {@link AnotherInterface} */exportinterfaceAnInterface{}/** * Some documentation */exportinterfaceAnotherInterface{}}/* * The error goes away in three ways: * - Comment out the below class * - Comment out the below interface * - Even stranger: Make this comment a TSDoc comment (add extra * to beggining of comment), * which will apply to the class. * - This may be a workable workaround */declareclassSameNameClassNamespace{}/** * This interface is used to augment additional keys (from AnInterface) onto SameNameClassNamespace */interfaceSameNameClassNamespaceextendsSameNameClassNamespace.AnInterface{}export{SameNameClassNamespace};
Environment
Typedoc version: 0.23.10
TypeScript version: 4.7.3
Node.js version: v16.14.0
OS: macOS 12.2.1
The text was updated successfully, but these errors were encountered:
The link on AnInterface is being resolved as expected. The issue is that the comment is inherited by the class reflection for SameNameClassNamespace. When this happens, the link will then be resolved relative to the class, and TypeDoc today doesn't check for other declaration merged elements when attempting to resolve links
Search terms
same name interface namespace link
Expected Behavior
No warning or error in the scenario laid out below
Actual Behavior
TypeDoc fails to compile with this warning and error:
Steps to reproduce the bug
Repro PR:
Environment
The text was updated successfully, but these errors were encountered: