-
-
Notifications
You must be signed in to change notification settings - Fork 737
excludeNotExported with default export declaration separate from variable creation not working #393
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
Fix issue where default exports are separated across two statements such as ``` const foo = {}; export default foo; ``` * remove the short-circuit in the declaration factory so all reflections exist after converter#convert is run * in converter#resolve, add check for excludeNotExported and then prune the references list and children in the project structure whose isExported flag is false fixes TypeStrong#393
Fix issue where default exports are separated across two statements such as ``` const foo = {}; export default foo; ``` * remove the short-circuit in the declaration factory so all reflections exist after converter#convert is run * in converter#resolve, add check for excludeNotExported and then prune the references list and children in the project structure whose isExported flag is false fixes TypeStrong#393
Fix issue where default exports are separated across two statements such as ``` const foo = {}; export default foo; ``` * remove the short-circuit in the declaration factory so all reflections exist after converter#convert is run * in converter#resolve, add check for excludeNotExported and then prune the references list and children in the project structure whose isExported flag is false fixes TypeStrong#393
What the final status for this? Problem is still present and not resolved since 2 years? |
Yes, it's still broken. Most cases with exports separate from declarations were fixed in 0.16, but default exports and Nobody works on TypeDoc full time, I've been lucky enough to get a lot done the past month or so, but will soon have much less time to dedicate to it. |
To well understand, the problem is present in the rendering part or the introspection part ? |
I believe both need to be updated to properly fix this.
|
But seems the typescript reflection detect it. In this case the problem is fully internal. |
as I see in the code, the exports are not checked at the good level. On an existing variable export no node exist Will try to rewrite it |
I'm not sure, I wasn't involved much then, based on the comments it looks like it never solved the issue of telling if a reflection was the default export.
I think it should be possible to check the source file exports map (exported under "default") and mark a node exported if its symbol is the same symbol. |
I've works on a for of typedoc that correctly supports the lib management There's a PR over this branch: #1196 This is globally working with the new 'library' mode of typedoc You can try if you want |
Yea, I'm with paztis here, I don't really want to pick this up when it should be fixed properly by library mode (which should replace most if not all uses of the other modes) You can also install |
In a module where the default export is defined separate from the creation of the exported value, TypeDoc can't seem to map the exported value back to the internal variable.
Example module:
This generates a page that looks like this:
The text was updated successfully, but these errors were encountered: