-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Infer from annotated return type nodes before assigning contextual parameter types #60964
Infer from annotated return type nodes before assigning contextual parameter types #60964
Conversation
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
Any chance this PR lands? |
This feels right to me; the info is right there after all. @typescript-bot test it |
Hey @jakebailey, the results of running the DT tests are ready. Everything looks the same! |
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the user tests with tsc comparing Everything looks good! |
@jakebailey Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
Wait, was this effectively #56460 in disguise? Are all of those now fixed? |
Not quite. This PR here is solely about the return type node and it doesn't change when this function is called. The other PR is solely about annotated parameters and it makes this function called in more places. So yes, there is a code area overlap between both but they are about different things and none of the other issues are fixed by this PR here. |
related to #60922 and #60544
It doesn't fix any of those issues but it addresses the gotcha observed in both threads, see #60922 (comment) and #60544 (comment)