You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the generic parameters for members are not shown properly. For example,
function something<T>(arg: T): T
gets documented as
function something(arg: undefined)
Also, generic parameters are erased from types. For example, Something<T> is documented as just Something. The type parameter T is mentioned as-is on the members, but it's not clear whether this is a type or type parameter).
@vogloblinsky Thank for the quick fix. Just one question, as I can't test it right now: would this fix also show the type parameters for classes & interfaces, or just for methods?
Just look at my sample under "Reproduce the error". The class Sample<T> canot be recognized as generic in the description or navigation.
Not sure it makes sense to spell out the parameter names (they're not always a single letter), but indicating the arity should be enough I guess. So Foo<>, Foo<,>, etc. in navigation context should be enough.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.
Activity
rubenprins commentedon May 8, 2018
@vogloblinsky Thank for the quick fix. Just one question, as I can't test it right now: would this fix also show the type parameters for classes & interfaces, or just for methods?
vogloblinsky commentedon May 8, 2018
No but i can add it quickly, do you have examples ?
rubenprins commentedon May 8, 2018
Just look at my sample under "Reproduce the error". The class
Sample<T>canot be recognized as generic in the description or navigation.Not sure it makes sense to spell out the parameter names (they're not always a single letter), but indicating the arity should be enough I guess. So
Foo<>,Foo<,>, etc. in navigation context should be enough.2 remaining items
vladjerca commentedon May 23, 2019
@vogloblinsky any update on this? I see the milestone was pushed a few times.
stale commentedon Sep 30, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Oct 7, 2019
This issue has been automatically closed because it has not had recent activity. Please file a new issue if you are encountering a similar or related problem. Thank you for your contributions.
lock commentedon Dec 6, 2019
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.
fix(deps): generic type parameters for functions
fix: preserve generic type parameters in docs