diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-30 00:22:26 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-30 00:22:26 +0200 |
commit | ca90094c8fb30ffd29f6d53f2d2ac71f55a45e94 (patch) | |
tree | bfed2efbd9f0b94646eeb287b5188df4420901d5 /frontend/src/sagas/errors.js | |
parent | Remove unused history variable from rootSaga (diff) | |
download | seven-wonders-ca90094c8fb30ffd29f6d53f2d2ac71f55a45e94.tar.gz seven-wonders-ca90094c8fb30ffd29f6d53f2d2ac71f55a45e94.tar.bz2 seven-wonders-ca90094c8fb30ffd29f6d53f2d2ac71f55a45e94.zip |
Fix sagas types
Diffstat (limited to 'frontend/src/sagas/errors.js')
-rw-r--r-- | frontend/src/sagas/errors.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/sagas/errors.js b/frontend/src/sagas/errors.js index 6598da6c..84bd044b 100644 --- a/frontend/src/sagas/errors.js +++ b/frontend/src/sagas/errors.js @@ -1,12 +1,12 @@ // @flow import { toastr } from 'react-redux-toastr'; -import type { Channel } from 'redux-saga'; +import type { Channel, SagaIterator } from 'redux-saga'; import { eventChannel } from 'redux-saga'; import { apply, cancelled, take } from 'redux-saga/effects'; import type { ApiError } from '../api/model'; import type { SevenWondersSession } from '../api/sevenWondersApi'; -export function* errorHandlingSaga(session: SevenWondersSession): * { +export function* errorHandlingSaga(session: SevenWondersSession): SagaIterator { const errorChannel: Channel = yield eventChannel(session.watchErrors()); try { while (true) { |