FWIW, this process can be simplified greatly, on several levels.
First, we already have a Redux+TS template for Create-React-App: github.com/reduxjs/cra-template-redux-typescript . It comes with Redux Toolkit and React-Redux already configured.
Second, the examples here are actually going against how we recommend writing Redux code.
createSlice API, which will also auto-generate the action creators for youcreateSlice uses Immer inside, so you can "mutate" the state inside of the reducer instead of having to write spread operations for immutable updatesPlease see these resources for our guidelines on how to write Redux code correctly: