I'm using createSlice together with useReducer.
I'd like the dispatch to be typed properly, that is React.Dispatch<ReducerActions>.
How do I extract action types from createSlice?
The following does not work, it resolves to AnyAction... which is understandable I'd say, as all actions pass through all reducers.
Dispatch<Parameters<typeof slice["reducer"]>[1]>