From ca90094c8fb30ffd29f6d53f2d2ac71f55a45e94 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Mon, 30 Apr 2018 00:22:26 +0200 Subject: Fix sagas types --- frontend/src/sagas/errors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/sagas/errors.js') 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) { -- cgit