Skip to content

Type overhaul

Latest
Compare
Choose a tag to compare
@JakeSidSmith JakeSidSmith released this 21 Aug 10:52
· 2 commits to master since this release
301df9e
  • 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
});

#13