diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-30 00:39:45 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-30 00:39:45 +0200 |
commit | f50424515ae1d47f323f4b9c387f5b7136390fd8 (patch) | |
tree | 1b45e474906c6bc68ead3d70298622dbcc969d42 /frontend/src | |
parent | Complete redux action types (diff) | |
download | seven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.tar.gz seven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.tar.bz2 seven-wonders-f50424515ae1d47f323f4b9c387f5b7136390fd8.zip |
Fix root saga type
Diffstat (limited to 'frontend/src')
-rw-r--r-- | frontend/src/sagas.js | 3 |
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); |