I have never run into this issue before... but its giving it to me now...
// TS7022: 'rootReducer' implicitly has type 'any' because it does not
// have a type annotation and is referenced directly or indirectly in its own initializer
const rootReducer = combineReducers({
employee: employee.reducer,
company: company.reducer,
alerts: alerts.reducer,
});
// gives error: TS2456: Type alias 'RootState' circularly references itself.
export type RootState = ReturnType<typeof rootReducer>;
function makeStore() {
return configureStore(
{
reducer: rootReducer,
devTools: true,
})
}