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
That's... really weird. The hierarchy is correct, so TypeDoc did know what the parent class was, but copied in methods from a child class, which doesn't make sense.
Looks like this is only set in mergeDeclarations, so it must be called inappropriately somewhere. I'll take a closer look next weekend.
cc @Gerrit0 FWIW this was working fine in version 0.15.6 it seems. Can't use that version due to it depending on an older typescript though. Tested further and broke between 0.15.8 and 0.16.0-0.
So... I've fixed this, for TypeScript projects. Unfortunately, it appears that work done to fix some other issues with inheritance breaks running TypeDoc on Chart.js entirely since we don't have special casing for all of the JSDoc style types. I'm sorry to say that I don't plan on fixing this - at least initially for 0.20. I'd like to support JS projects too, but the primary focus of TypeDoc is TypeScript projects.
For this to be supported:
Add a special case to convertTypeAlias in src/lib/converter/symbols.ts for JSDocTypedef nodes
Probably also add a bunch of type converters to src/lib/converter/types.ts for JSDoc type nodes
@Gerrit0 I've been tracking this issue because it appears to be affecting my (TypeScript) project. Are you saying that this bug is specific to JS projects? Or that it was affecting all projects, but has since been fixed for TS projects and not JS projects? If the latter, what version of typedoc should the fix be available in? Thanks!
It was affecting all projects, but 0.20 contains a fix for TS projects. It likely also fixes the issue in JS projects, but I was unable to confirm this with the Chart.js test case since it uses JSDoc style types. 0.20 is released as a beta now, and will be released fully before the end of the year.
Activity
Gerrit0 commentedon Feb 17, 2020
That's... really weird. The hierarchy is correct, so TypeDoc did know what the parent class was, but copied in methods from a child class, which doesn't make sense.
Looks like this is only set in
mergeDeclarations, so it must be called inappropriately somewhere. I'll take a closer look next weekend.typedoc/src/lib/converter/factories/declaration.ts
Line 214 in d18664d
CoreyDotCom commentedon Aug 6, 2020
This issue still persists in latest TypeDoc... any workarounds??
CoreyDotCom commentedon Aug 6, 2020
cc @Gerrit0 FWIW this was working fine in version 0.15.6 it seems. Can't use that version due to it depending on an older typescript though. Tested further and broke between 0.15.8 and 0.16.0-0.
Gerrit0 commentedon Nov 25, 2020
So... I've fixed this, for TypeScript projects. Unfortunately, it appears that work done to fix some other issues with inheritance breaks running TypeDoc on Chart.js entirely since we don't have special casing for all of the JSDoc style types. I'm sorry to say that I don't plan on fixing this - at least initially for 0.20. I'd like to support JS projects too, but the primary focus of TypeDoc is TypeScript projects.
For this to be supported:
donmccurdy commentedon Nov 27, 2020
@Gerrit0 I've been tracking this issue because it appears to be affecting my (TypeScript) project. Are you saying that this bug is specific to JS projects? Or that it was affecting all projects, but has since been fixed for TS projects and not JS projects? If the latter, what version of typedoc should the fix be available in? Thanks!
Gerrit0 commentedon Nov 27, 2020
It was affecting all projects, but 0.20 contains a fix for TS projects. It likely also fixes the issue in JS projects, but I was unable to confirm this with the Chart.js test case since it uses JSDoc style types. 0.20 is released as a beta now, and will be released fully before the end of the year.
Gerrit0 commentedon Jan 3, 2021
I just double checked, and confirmed that this is fixed in 0.20.9 for Chart.js
benmccann commentedon Jan 3, 2021
That's awesome! Thanks for the amazing 0.20 release and all your help!!