-
-
Notifications
You must be signed in to change notification settings - Fork 736
0.20.0-beta.4 Default export not picked up in generated library mode docs #1382
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
This should be fixed in 0.20.0-beta.5 - default exports are annoying... there are entirely too many options for them. |
Hi @Gerrit0, I have taken another look at this today and can confirm that the default export is now being included in the generation. However, this behaviour still isn't exactly what I was expecting. In the right hand column, the name of the default export is referred to as I would expect the behaviour to use the exported function / class name instead of default. In my use case, I would expect it to be Environment
|
It is documented as You could do this, which should result in two documentation items, where export { EnvironmentHandler }
export default EnvironmentHandler |
Ah okay, this makes sense. I definitely agree default exports are complicated! This beta release is looking really good and in general I am really happy with how it is working. Thanks for all the great work. |
Search terms
Default export, Library mode
Expected Behavior
Given
I would expect default export of
./src/index.ts
to be included in doc generation. It seems all other named exports are included (which is great).Actual Behavior
Default export does not appear in right navigation modules pane. There isn't any generated html file for it either.
Steps to reproduce the bug
#1364 Using 0.20.0-beta.4
index.ts
tsconfig.json
Expected library usage
Environment
The text was updated successfully, but these errors were encountered: