-
Notifications
You must be signed in to change notification settings - Fork 708
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
Can't get @event to work well with overloads #136
Comments
TypeScript decorators can also be considered to mark events. |
Hi Panayot, the
As events are not part of the TypeScript language the |
Could you check the docs for this nativescript plugin: I tried to use the same documentation without the @event and then it works fine, but ofc. then the |
Okay, that's a bug, the parameter descriptions are resolved incorrectly if the flag |
Not 100% percent related with the issue but I've just documented a couple of alternatives to describe/document events with TypeDoc that I think could help you. also I would very appreciate if you could review it or give feedback: Thanks |
I think the ultimate solution would work well for .d.ts-es like:
Replacing the @param with @event fails the code completion and suggestions for parameters in some IDEs. Using @event somewhere would be fine (though it would appear as plain text in the suggestions but the same is valid for @return) I would be more comfortable setting the "on" and "addEventListener" names as parameters to the tool rather than adjusting my .d.ts-es.
Currently the oversloads for the above methods are displayed nicely, but when the @event is used instead of @param for the first paramter, all parameter documentation display the doc from the first overload declaration. I guess I am doing something wrong?
It would be nice if this could be added in the documentation.
The text was updated successfully, but these errors were encountered: