summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/errors.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:22:26 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:22:26 +0200
commitca90094c8fb30ffd29f6d53f2d2ac71f55a45e94 (patch)
treebfed2efbd9f0b94646eeb287b5188df4420901d5 /frontend/src/sagas/errors.js
parentRemove unused history variable from rootSaga (diff)
downloadseven-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.js4
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) {
bgstack15