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
Seems to me this can be accomplished using ReturnType<T> (added to lib.d.ts in 3.0) and the Parameters<T> type I suggest here #24897 (comment). The only one thing we don't support is extracting the parameter names, but that doesn't appear to be significant in the example.
@ahejlsberg the Parameters<T> type doesn't preserve the original argument names or TSDoc comments. I think what @whatasoda wants is very similar to the new feature request I just created #30351.
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow.
I want to do like this.
![image](https://user-images.githubusercontent.com/20302152/43710868-dd8e2404-99ab-11e8-83af-128db9aa3a0f.png)
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: