-
Notifications
You must be signed in to change notification settings - Fork 710
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
"Delegate" type aliases render summary in wrong location #2372
Comments
This happens because |
So is this fixable? Is there a workaround, even if draconic? |
/**
* The signature for a function acting as an event handler.
*/
export type EventHandler = ((e: Event) => void) & {}; is the same type, but is not detected as a function signature, so kinda sorta works... This should be fixable, unfortunately signature comment handling is really convoluted, likely not a trivial change. |
Search terms
Type Alias
Delegate
Handler
Expected Behavior
The following type declaration should render with its comment just below the signature.
It should appear like this (without the
| null
, added to show expected output).Actual Behavior
Typedoc renders the description as part of the type declaration.
Steps to reproduce the bug
Repro here:
TypeStrong/typedoc-repros#30
Environment
The text was updated successfully, but these errors were encountered: