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

Add a type for take patterns #695

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ha-limLee
Copy link

@Ha-limLee Ha-limLee commented Nov 4, 2023

According to redux saga docs, take effect can receive patterns(array of pattern).

But current result of the effect is any.

// action is any
// this should be FooAction | BarAction
const action = yield* take([foo, bar]);

So I added a type overloading to make it work properly.

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.

1 participant