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

Refine the type signatures of the functions apply, call, and bind. #60461

Closed
wants to merge 2 commits into from

Conversation

kzyqq00-Player
Copy link

Fixed #54319

The original type signature was not rigorous, so I improved it.

Example

Original

image
No errors were reported...

Now

image
Errors are now reported!

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 8, 2024
@typescript-bot
Copy link
Collaborator

The TypeScript team hasn't accepted the linked issue #54319. If you can get it accepted, this PR will have a better chance of being reviewed.

@xiBread
Copy link

xiBread commented Nov 9, 2024

This was already implemented in #27028; the linked issue is referring to generics. Also not sure where you're not seeing errors; it works as expected in the playground.

@kzyqq00-Player
Copy link
Author

Emmm, OK, Looks like I'm here to make trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Type inference for Function.call return type on generic functions
3 participants