-
-
Notifications
You must be signed in to change notification settings - Fork 736
Support for export import statements #159
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
Hi, thank you for your long comment. I see your point here and it makes sense to me. I have to admit that TypeDoc currently has absolutely no special handling for import/export statements and I also see the need for something like that. I'm still quite unsure on how to implement something like this as there are various use cases of import/export statements. My first step would have been to add a basic export table to the documentation al least gives basic information about the exported members of a module. |
I've had this issue in a library of mine recently and decided to fork typedoc to implement this feature. |
Is there any interest in closing this out by syncing and merging either https://github.com/iRath96/typedoc or #646? We export imports extensively in Apache Arrow and it would be great to have better support for this. See ARROW-951 for more on our particular issue |
It would be great to merge in #646 (looks more complete than iRath96's implementation) - we currently have quite a backlog of PRs and issues to address that are simply waiting on time. |
Understood. Anything I can do to help move #646 along? I could look into syncing it up with master if you think that would help. |
That would be helpful since it would make it easier to pull and check that everything is working correctly before merging. Thanks! |
Support for this has been merged with #1157 |
I have a library that uses requirejs modules and then is published as a node module.
I like to structure my project so that there is only 1 class per file, and then I have 1 file that is the library entry point file that exports all the classes I want to make available.
See the following example
file lib-entry-point.ts
file ClassA.ts
file ClassB.ts
file module1.ts
file ClassC.ts
To generate the documentation I chose "file" mode and added the 5 files to the src property. What I get is:
But, I would like to get this:
The problem is that if I want to get that result, ClassB name must be "IChangedTheName" and ClassC has to be contained within module1.ts
So my question is, would it be possible to have typedoc interpreting the structure of the project from the export import statements and be able to set whatever name I want for my class at that point?
The text was updated successfully, but these errors were encountered: