-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
feat(core): add isPromise generic #34168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would squash the three commits into one and use the more general refactor: make
addPromise() generic
commit message.
Otherwise LGTM
@danranVm please rebase so we can see if this works with TypeScript 3.8. |
fyi: I just relabeled this PR as "master-only" since it's a "feature" that does not belong on the patch branch. |
Hi @danranVm, thanks for rebasing this PR. I've noticed that there is a new comment that was added as a result of rebase ( |
@AndrewKushnir ok, it's correct now ? |
Hi @danranVm, thanks for updating commit messages, everything looks good now. I've started a new g3 presubmit (internal only link) and will keep you updated. Thank you. |
@danranVm, sorry, just noticed that the commit message refers to
Could you please update commit message? Thank you. |
This commit adds generic to `isPromise` function to help with type inference.
@AndrewKushnir updated, thanks for your review. |
Hi @danranVm, thanks for the updates. The commit message looks good and g3 presubmit is successful, so I'm adding the "merge" label back. I also updated the "PR target" to be master and patch, since we cut 9.1.0 RC.0 this morning and created a new patch branch for 9.1.x versions. Thank you. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
add generic to help type inference
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information