Open dlech opened 1 year ago
const task = yield* takeEvery(someAction, handleSomeAction);
In this statement, task currently has type of never since fork effects like takeEvery have a return type of SagaGenerator<never, ForkEffect<never>>.
task
never
takeEvery
SagaGenerator<never, ForkEffect<never>>
I think these should be replaced with SagaGenerator<Task, ForkEffect<never>> since all fork effects return a Task object.
SagaGenerator<Task, ForkEffect<never>>
Task
In this statement,
task
currently has type ofnever
since fork effects liketakeEvery
have a return type ofSagaGenerator<never, ForkEffect<never>>
.I think these should be replaced with
SagaGenerator<Task, ForkEffect<never>>
since all fork effects return aTask
object.