Skip to content
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

Add Parameters type to core lib #26042

Closed
wants to merge 1 commit into from
Closed

Add Parameters type to core lib #26042

wants to merge 1 commit into from

Conversation

anurbol
Copy link

@anurbol anurbol commented Jul 28, 2018

Here: #26019 (comment)
I was recommended by @bterlson to add Parameters type to my lib.d.ts as well as ReturnType. When doing so, I found out that ReturnType is already lives in core lib.es5.d.ts. In my case I use Parameters much more than ReturnType, and I guess some other people do as well. So I thought both said types should be in core lib.

Fixes #26019

Sorry, no new tests/docs (I am afraid I am not able for writing good ones), but the code's author is Anders Hejlsberg himself :-)

Here: #26019 (comment)
I was recommended by @bterlson to add Parameters type to my lib.d.ts as well as ReturnType. When doing so, I found out that ReturnType is already lives in core lib.es5.d.ts. In my case I use Parameters much more than ReturnType, and I guess some other people do as well. So I thought both said types should be in core lib.
@mhegazy
Copy link
Contributor

mhegazy commented Jul 28, 2018

We discussed that before, and chose not to add it. we can discuss it again in the next design meeting.

@anurbol
Copy link
Author

anurbol commented Jul 29, 2018

@mhegazy Thank you for the response! OK, closing this, but I really think that should be in lib. After all ReturnType being in core and Parameters not, seems inconsistent, though you, TS team, of course may have your own reasons. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants