From 8ba50d67998b6412b27eb5cd17aa7a55fecd8bbc Mon Sep 17 00:00:00 2001 From: dionshi Date: Thu, 29 Aug 2024 14:50:26 +0800 Subject: [PATCH] improve rootReducer typing --- src/reducer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reducer.ts b/src/reducer.ts index 00f8cba..13916c1 100644 --- a/src/reducer.ts +++ b/src/reducer.ts @@ -142,8 +142,7 @@ export function idleReducer(state: IdleState = {timeout: DEFAULT_IDLE_TIMEOUT, s } // Root Reducer -// TODO: investigate why return-type Reducer> does not work -export function rootReducer(routerReducer: Reducer): Reducer> { +export function rootReducer(routerReducer: Reducer): Reducer, {}> { return combineReducers({ router: routerReducer, loading: loadingReducer,