diff options
Diffstat (limited to 'frontend/src/sagas.js')
-rw-r--r-- | frontend/src/sagas.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js index 9606d552..037aa9ed 100644 --- a/frontend/src/sagas.js +++ b/frontend/src/sagas.js @@ -6,8 +6,11 @@ import { makeSagaRoutes } from './routes'; import { createWsConnection } from './utils/websocket'; import errorHandlingSaga from './sagas/errors'; -export default function* rootSaga(history) { - let wsConnection; +import type { SocketObjectType } from './utils/websocket'; +import type { History } from 'react-router'; + +export default function* rootSaga(history: History): * { + let wsConnection: SocketObjectType | void; try { wsConnection = yield call(createWsConnection); } catch (error) { |