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

refactor: use unknown in switchMapTo type parameter constraint #6127

Merged
merged 4 commits into from Mar 15, 2021

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Mar 14, 2021

Description:

This PR makes a similar change to what was made in #5839 so that functions are not matched - because of microsoft/TypeScript#18757

Also:

  • The signatures prior to this change weren't using ObservedValueOf.
  • The PR also uses isFunction to check the result selector, as that's what's done in both concatMapTo and mergeMapTo in master.

Related issue (if exists): #5839

@cartant cartant requested a review from benlesh March 14, 2021 00:52
@benlesh benlesh merged commit 05a0271 into ReactiveX:master Mar 15, 2021
@cartant cartant deleted the cartant/switch-map-to branch March 19, 2021 07:21
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