summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:39:45 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:39:45 +0200
commitf50424515ae1d47f323f4b9c387f5b7136390fd8 (patch)
tree1b45e474906c6bc68ead3d70298622dbcc969d42
parentComplete redux action types (diff)
downloadseven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.tar.gz
seven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.tar.bz2
seven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.zip
Fix root saga type
-rw-r--r--frontend/src/sagas.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js
index d9069051..bbc9a6b6 100644
--- a/frontend/src/sagas.js
+++ b/frontend/src/sagas.js
@@ -1,4 +1,5 @@
// @flow
+import type { SagaIterator } from 'redux-saga';
import { call, fork } from 'redux-saga/effects';
import { connectToGame, SevenWondersSession } from './api/sevenWondersApi';
import { errorHandlingSaga } from './sagas/errors';
@@ -6,7 +7,7 @@ import { gameBrowserSaga } from './sagas/gameBrowser';
import { homeSaga } from './sagas/home';
import { lobbySaga } from './sagas/lobby';
-export function* rootSaga(): * {
+export function* rootSaga(): SagaIterator {
let sevenWondersSession: SevenWondersSession | void;
try {
sevenWondersSession = yield call(connectToGame);
bgstack15