v5.0.0-beta.0
This beta release alters our TS types to add and use a new UnknownAction type where possible for better type safety, and includes all prior changes from the 5.0 alphas. This release has breaking changes from 4.x.
We recommend that users should prefer using Redux Toolkit for Redux development, and use the RTK 2.0 beta that depends on this core release, rather than using the Redux core library directly
npm i redux@next
yarn add redux@next
Changelog
New UnknownAction Type
The Redux TS types have always exported an AnyAction type, which is defined to have and treat any other field as . This makes it easy to write uses like , but unfortunately does not provide any meaningful type safety.