I am trying to type sagas. I am using the flow-typed definitions: https://github.com/flowtype/flow-typed/blob/master/definitions/npm/redux-saga_v0.13.x/flow_v0.36.x-v0.37.x/redux-saga_v0.13.x.js
export function* fetchUsers(): Generator<IOEffect, void, any> {
const users = yield call(UserApi.list)
yield put(fetchUserSucc(users))
}
But flow keeps complaining:
Identifier
IOEffect
Could not resolve name
What am I doing wrong?
IOEffect
because there is noIOEffect
export inredux-saga/effects
." when I try to do that! – Patricide