Skip to content
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

Modules with single-export no-show in "Only exported" #8

Closed
Bartvds opened this issue Jun 4, 2014 · 2 comments
Closed

Modules with single-export no-show in "Only exported" #8

Bartvds opened this issue Jun 4, 2014 · 2 comments

Comments

@Bartvds
Copy link
Member

Bartvds commented Jun 4, 2014

My project is build using external-module pattern and uses a lot of single-exports, but they don't show up in the generated output when I activate "Only exported".

class Foo {
    // ...
}
export = Foo;

When I disable "Only exported" I see them as expected.

@sebastian-lenz
Copy link
Member

This is a difficult one. TypeScript does not mark the class as beeing exported.

I've looked through the code generation of TypeScript and it looks like the only way to detect those single exports is via the AST. I've added a new handler that parses the AST of dynamic modules and manually sets the exported flag.

However I'm not sure whether this covers all cases. As far I can see you can only export top level declarations. If that's the case the solution should be sufficient.

@Bartvds
Copy link
Member Author

Bartvds commented Jun 4, 2014

Cool, I'm happy to test it when you think it should work.

lddubeau pushed a commit to lddubeau/typedoc that referenced this issue Apr 5, 2018
@Gerrit0 Gerrit0 removed the bug Functionality does not match expectation label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants