C Redux-Saga some miracles?

Hi all.
I have two identical piece of code:
import { createStore, applyMiddleware, Store } from 'redux';
import createSagaMiddleware from 'redux-saga';
import { rootSaga } from './sagas';
import { rootReducer, IAppState } from './reducers';

const sagaMiddleware: any = createSagaMiddleware();

export function configureStore(): Store<IAppState> {
 const store = createStore(rootReducer as any, (applyMiddleware(sagaMiddleware))
 ) as Store<IAppState>;


 return store;

So if the mouse hover rootSaga, in one code shows:
(alias) function rootSaga(): Generator<ForkEffect<void>[], void, unknown>
import rootSaga

and in another:
(alias) function rootSaga(): Generator<ForkEffect[], void, unknown>
import rootSaga

I feel that the void in the first case, I do not work Saga connected like this:
export function* rootSaga() {
 yield [fork(newsSaga)];

This is where the guidance shows:
(alias) function newsSaga(): Generator<ForkEffect<never>, void, unknown>
import newsSaga

And in your version there is no Nevers(((.

What am I doing wrong?
April 3rd 20 at 18:44
0 answer

Find more questions by tags TypeScriptRedux