- Fixed types of handlers for newer versions of TS.
- Returned reducer takes
AnyAction
.
TYPE BREAKING CHANGE: generic params have changed. You should remove any explicitly passed generic params and instead rely on inferring from the types of the handlers e.g.
createReducer<string>({
foo: (state) => state
})
Becomes
createReducer({
foo: (state: string) => state
});