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

chore: remove bindCallback workaround #6063

Merged

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Feb 27, 2021

Description:

This PR removes the workaround type that was added for bindCallback in #6050. TypeScript is correct that the signatures aren't compatible because callback arguments are contravariant.

Related PR: #6050

@cartant cartant requested a review from benlesh February 27, 2021 02:03
@cartant
Copy link
Collaborator Author

cartant commented Feb 27, 2021

BTW, this relies upon a 4.2 feature, so TS 4.2 will need to be our minimum supported version. For 4.1 to be our minimum, we'd have to re-instate the workaround, as 4.2 deems our previous signatures to be incompatible. Once again, a TS minor-version release is breaking.

@benlesh
Copy link
Member

benlesh commented Mar 1, 2021

BTW, this relies upon a 4.2 feature, so TS 4.2 will need to be our minimum supported version.

It seems like the output .d.ts files would be okay for 4.1 though, no? Either way, this seems like what we want to land in 7. So... 👍

@benlesh benlesh merged commit 1365c41 into ReactiveX:master Mar 1, 2021
@cartant cartant deleted the cartant/remove-bindCallback-workaround branch March 19, 2021 07:22
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.

None yet

2 participants