Improve reducer type
This commit is contained in:
@ -24,7 +24,6 @@ const store: any = {
|
||||
},
|
||||
instance: normalizeInstance({
|
||||
version: '3.4.1 (compatible; TruthSocial 1.0.0)',
|
||||
software: 'TRUTHSOCIAL',
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
@ -187,7 +187,7 @@ const accountsSelector = createSelector(
|
||||
const extendedRootReducer = (
|
||||
state: InferState<typeof appReducer>,
|
||||
action: AnyAction,
|
||||
): ReturnType<typeof rootReducer> & { accounts: ReturnType<typeof accountsSelector> } => {
|
||||
): ReturnType<typeof rootReducer> => {
|
||||
const extendedState = rootReducer(state, action);
|
||||
return extendedState.set('accounts', accountsSelector(extendedState));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user