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

fix(toMap): fix return type of keySelector #365

Merged
merged 1 commit into from
May 8, 2024

Conversation

berndfuhrmann
Copy link
Contributor

change return type of keySelector from TElement to TKey, since keySelector returns keys, not elements

Closes: #364

Description:
change return type of keySelector to TKey. This might be a breaking change for existing code in rare cases. But then the programmer would very likely have worked around the bug this PR fixes. Feedback welcome.

Related issue (if exists):
#364

change return type of keySelector from TElement to TKey, since keySelector returns keys, not elements

Closes: ReactiveX#364
@trxcllnt
Copy link
Member

trxcllnt commented May 8, 2024

Thanks for the PR!

Copy link
Member

@trxcllnt trxcllnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering the public function toMap<TSource, TKey, TElement = TSource> signature didn't change, I don't think this'll be a breaking change.

@trxcllnt trxcllnt merged commit eab2f10 into ReactiveX:master May 8, 2024
25 checks passed
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.

toMap keySelector type is incorrect
2 participants