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

[redux-saga] Correct typing for function yielding all effect #3881

Open
AndrzejSala opened this issue Aug 26, 2020 · 0 comments
Open

[redux-saga] Correct typing for function yielding all effect #3881

AndrzejSala opened this issue Aug 26, 2020 · 0 comments

Comments

@AndrzejSala
Copy link

What is the current behavior?
I would like to add flow typing for the following function:

export default function* segmentUploadSagas() {
  yield all([watchRecreateSegment(), watchUploadSegment()]);
}

For function which yields effects normaly I use
: Saga<void>
, but it doesn't work

Also I tried this one, which is working fine for yield [...effects], but calling array of effects without all is causing warning:
: Generator<any, void, any>

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

No branches or pull requests

1 participant