-
-
Notifications
You must be signed in to change notification settings - Fork 737
Wrong id in inheritedFrom section #1230
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
Comments
The whole system surrounding TypeDoc's reference types really needs to be redone... We currently frequently try to guess what a reference is referring to given nothing but its name. While this might have worked decently well in pre-module TypeScript.... it is a horrible idea now. I spent a few hours looking into this yesterday and partially fixed it, but ran into several other blockers that will need some more hours to figure out. I should be able to look more deeply into it this weekend. |
I'm not familiar with the generated JSON here, but I think I'm seeing the same issue. I have a class hierarchy that looks like this: Most of those classes inherit a number of methods from Property, but the generated documentation shows it all as inherited from Node, which is a final class not extended by anything. For example, here's the documentation for Is this the same bug, or have I misunderstood the description? |
We are also running into the same issue. Sometimes the inherited from references its own class, sometimes a sibling class, and sometimes the actual base class. |
That sounds like the same bug, it sounds like we have a check inverted somewhere for which node to add the inherited from property to.
This never happened... GitHub's old notification system didn't save the notification and it dropped off my radar. PR welcome if someone wants to take a look at fixing this. I need to try to get library mode finished first. |
It might be, all of TypeDoc's logic regarding reference resolving is sketchy at best. I'll keep both open for now. |
When generating from d.ts file the resulting part of json file is
Expected Behavior
The "id" value in inheritedFrom section should be as the id of "Init" property of the ASPxClientControlBase class.
Actual Behavior
The "id" value in inheritedFrom section is the id of "Init" property of the ASPxClientGaugeControl class (the inherited member itself).
Steps to reproduce the bug
typedoc --json tsDoc.json --ignoreCompilerErrors --includeDeclarations --excludePrivate --target ES5 d:\Temp
Environment
The text was updated successfully, but these errors were encountered: