-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(subscriber): strict type signature for next method #7172
fix(subscriber): strict type signature for next method #7172
Conversation
BREAKING CHANGE: Subscriber.next now takes strict argument
510ab94
to
ba2b0b1
Compare
Yay! I almost forgot we were waiting for v8 for this one. |
Awesome! Thanks for approving! |
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.
Uh oh. We have broken tests.
@benlesh tests are fixed 🤌 |
@benlesh could you review, please? |
@benlesh just a friendly reminder ;) would love this to land in |
Hello! Sorry, I can't do more I'm not in the team 😅 |
@benlesh, is this merged to |
@jakovljevic-mladen @benlesh I expected this to land on 7.x 🤔 |
@jakovljevic-mladen honestly, I didn't notice, but I'm generally okay with this as a "fix" in 7.x. I'll go back and have a look to double check, but I think this is a valid bug fix, as people should not be calling |
Description:
This PR fixes type signature of
Subscriber.prototype.next
method that was previously taking optional argument which was violating generic constraintT
.BREAKING CHANGE:
Subscriber.prototype.next
now takes strict argument.Related issue (if exists): #2852
Additional changes:
7.8.0
(runningnpm i
)