(
config: any,
reducer: Reducer<S, A, PreloadedState>
)
| 276 | } |
| 277 | |
| 278 | function persistReducer<S, A extends Action, PreloadedState>( |
| 279 | config: any, |
| 280 | reducer: Reducer<S, A, PreloadedState> |
| 281 | ) { |
| 282 | return ( |
| 283 | state: (S & ExtraState) | PreloadedState | undefined, |
| 284 | action: A |
| 285 | ) => { |
| 286 | const newState = reducer(state, action) |
| 287 | return { |
| 288 | ...newState, |
| 289 | foo: 'hi' |
| 290 | } |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | function persistStore<S>(store: S) { |
| 295 | return store |
no test coverage detected