-
Notifications
You must be signed in to change notification settings - Fork 5
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
Should this plugin also replace "default" with the field name? #1
Comments
PS: this makes the API not browsable, as only one "default" link works. |
Hi Felipe. I'm glad the plugin is useful for somebody. If you look at the code you will see that the plugin does nothing fancy. It only moves all reflections from the modules into the project. So the answer to your question is: No, it should not rename any exports at the moment. Naming collisions are not handled. I can have a look at that though. What would be your expected output? |
I thought more about it, and I agree, you're right. Especially because users may want to do the "renaming" without using your plugin together, so it would be better to be a standalone plugin.
With TypeDoc 0.19 and Now, with TypeDoc 0.20 and your plugin: Without your plugin: (despite the bad naming, they at least don't overlap) PS: I'm using docusaurus, but I already tested and this behavior remains in vanilla TypeDoc html generator. |
That would mean that moving the reflections to the project somehow destroys their "path". I'll take a look when I find the time. This should by fairly easy to reproduce with a simple example. |
If you want, you can try with my repository: https://github.com/felipecrs/megatar/tree/upgrade-typedoc/website |
Interesting. Thanks for the heads up. I was thinking about adding an option (something like |
The main motivation for having a separate plugin is to be able to use it without your plugin. |
I mean, for those who would still like to have their defaults renamed but they don't want to merge the modules. But the code itself is quite easy, as proposed by Gerrit0 at TypeStrong/typedoc#1521 (comment). |
I thought in these options:
|
I think |
New option |
First of all: your plugin saved my life. Thank you so much!
This started at TypeStrong/typedoc#1521. So, now that all modules are merged, I think it does not make sense anymore to use "default" as the fieldname.
So, my point here is: should this plugin also replace "default" with the field name? I'm not asking to do, just discussing :).
The text was updated successfully, but these errors were encountered: