-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unscoped @link in interface member docs cannot be resolved after inheritance into another package #2622
Comments
I'm not sure there's a good way to fix this. When TypeDoc is processing wrapping-lib, the comment for |
Is it possible to track where the .d.ts was generated from?
Is it possible to read the generated TypeDoc JSON of the origin library, and copy from the documentation of that identifier? |
Yes, that info is available, unfortunately, it doesn't solve the problem... "in another node_modules folder" doesn't necessarily mean in another library.... what's a "library" can be completely different between projects.
The problem here is actually that TypeDoc is getting a comment for the member when converting wrapping-lib, and not inheriting it from the parent library's reflection... If TypeDoc didn't add the comment for The problem with doing this is that TypeDoc doesn't know when converting I guess one way to kind of fix this would be to use DeclarationReflection.inheritedFrom and if when restoring the serialized projects the source property on a member of a class/interface indicates that it was inherited from a member we now have, re-replace the comment at that point as the parent's comment will have the correctly resolved link in this case... that.... might work... I'm not sure it's a general solution... it would overwrite any changes which have been made to the child comment by plugins. |
Search terms
@link, interface
Steps to reproduce the bug
TypeStrong/typedoc-repros#43
LibInt
has a member whose documentation contains{@link libFunc}
, linking to another identifier in the same package.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
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
The text was updated successfully, but these errors were encountered: