import { takeLatest , fork , put , ForkEffect } from "redux-saga/effects" ; import { Action } from "redux" ; import ActionTypes from "../ActionTypes" ; param { any } interface InitAudienceAction extends Action { saga : ( ) => null ; } function * initAudienceSaga ( { saga } ) { let newAudienceSagaTask = yield fork ( saga ) ; yield put ( { type : ActionTypes . ARENA_SET_STATE , state : { audienceSagaTask : newAudienceSagaTask } } ) ; } export default function * saga ( ) { yield takeLatest ( ActionTypes . ARENA_INIT_AUDIENCE_SAGA , initAudienceSaga ) ; }